Fields
| Name | Description |
|---|---|
| MAX_VALUE | The largest positive value of type float. |
| MIN_VALUE | The smallest positive value of type float. |
| NaN | The NaN value of type float. |
| NEGATIVE_INFINITY | The negative infinity of type float. |
| POSITIVE_INFINITY | The positive infinity of type float. |
| TYPE | The Class object representing the primitive type float. |
Constructors
| Name | Description |
|---|---|
| Float(double) | Constructs a newly allocated Floatobject that represents the argument converted to type float. |
| Float(float) | Constructs a newly allocated Float object that represents the primitive float argument. |
| Float(String) | Constructs a newly allocated Float object that represents the floating- point value of type float represented by the string. |
Methods
| Name | Description |
|---|---|
| byteValue() | Returns the value of this Float as a byte (by casting to a byte). |
| doubleValue() | Returns the double value of this Float. |
| equals(Object) | Compares this object against some other object. |
| floatToIntBits(float) | Returns the bit represention of a single-float value. |
| floatValue() | Returns the float value of this Float object. |
| hashCode() | Returns a hashcode for this Float. |
| intBitsToFloat(int) | Returns the single-float corresponding to a given bit represention. |
| intValue() | Returns the integer value of this Float (by casting to an int). |
| isInfinite() | Returns true if this Float value is infinitely large in magnitude. |
| isInfinite(float) | Returns true if the specified number is infinitely large in magnitude. |
| isNaN() | Returns true if this Float value is Not-a-Number (NaN). |
| isNaN(float) | Returns true if the specified number is the special Not-a-Number (NaN) value. |
| longValue() | Returns the long value of this Float (by casting to a long). |
| shortValue() | Returns the value of this Float as a short (by casting to a short). |
| toString() | Returns a String representation of this Float object. |
| toString(float) | Returns a String representation for the specified float value. |
| valueOf(String) | Returns the floating point value represented by the specified String. |