Constructor Summary |
Float(float value) Create an immutable object with a specific float value. |
Method Summary |
|
double |
doubleValue() Cast the float value to double |
bool | equals(Object obj) |
static int |
floatToIntBits(float value) Returns the IEEE 754 floating-point "single format" bit layout representation of the value. |
float |
floatValue() Return the float value |
int | hashCode() |
static float |
intBitsToFloat(int bits) Returns a float value from a IEEE 754 floating-point "single format" bit layout representation. |
int |
intValue() Cast the float value to int |
bool |
isNaN() Checks if value is NaN (Not a Number) |
static float |
parseFloat(String s) Returns a float value parsed from a string. Will throw an exception if the string does not contain a parseable number. |
String | toString() |
Constructor Detail |
public Float(float value)
Create an immutable object with a specific float value.
Method Detail |
public double doubleValue()
Cast the float value to double
public bool equals(Object obj)
public static int floatToIntBits(float value)
Returns the IEEE 754 floating-point "single format" bit layout representation of the value.
public float floatValue()
Return the float value
public int hashCode()
public static float intBitsToFloat(int bits)
Returns a float value from a IEEE 754 floating-point "single format" bit layout representation.
public int intValue()
Cast the float value to int
public bool isNaN()
Checks if value is NaN (Not a Number)
public static float parseFloat(String s)
Returns a float value parsed from a string. Will throw an exception if the string does not contain a parseable number.
public String toString()