java.lang
Class Float
java.lang.Object
java.lang.Number
java.lang.Float
- All Implemented Interfaces:
- Serializable
public final class Float
- extends Number
- See Also:
- Serialized Form
MAX_VALUE
public static final float MAX_VALUE
- See Also:
- Constant Field Values
MIN_VALUE
public static final float MIN_VALUE
- See Also:
- Constant Field Values
NaN
public static final float NaN
- See Also:
- Constant Field Values
POSITIVE_INFINITY
public static final float POSITIVE_INFINITY
- See Also:
- Constant Field Values
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY
- See Also:
- Constant Field Values
TYPE
public static final Class TYPE
Float
public Float(float f)
Float
public Float(double d)
Float
public Float(String s)
throws NumberFormatException
- Throws:
NumberFormatException
byteValue
public byte byteValue()
- Specified by:
byteValue in class Number
floatValue
public float floatValue()
- Specified by:
floatValue in class Number
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class Number
intValue
public int intValue()
- Specified by:
intValue in class Number
longValue
public long longValue()
- Specified by:
longValue in class Number
shortValue
public short shortValue()
- Specified by:
shortValue in class Number
isNaN
public boolean isNaN()
isInfinite
public boolean isInfinite()
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
floatToIntBits
public static int floatToIntBits(float value)
floatToRawIntBits
public static int floatToRawIntBits(float value)
intBitsToFloat
public static float intBitsToFloat(int value)
valueOf
public static Float valueOf(String s)
throws NumberFormatException
- Throws:
NumberFormatException
toString
public static String toString(float f)
parseFloat
public static float parseFloat(String s)
throws NumberFormatException
- Throws:
NumberFormatException
isInfinite
public static boolean isInfinite(float d)
isNaN
public static boolean isNaN(float d)