java.lang
Class Float
java.lang.Object
java.lang.Number
java.lang.Float
public final class Float
- extends Number
TYPE
public static final Class TYPE
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
NaN
public static final float NaN
- See Also:
- Constant Field Values
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
Float
public Float(float value)
Float
public Float(double value)
Float
public Float(String s)
throws NumberFormatException
- Throws:
NumberFormatException
byteValue
public byte byteValue()
- Overrides:
byteValue in class Number
doubleValue
public double doubleValue()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
floatToIntBits
public static int floatToIntBits(float value)
floatValue
public float floatValue()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
intBitsToFloat
public static float intBitsToFloat(int bits)
intValue
public int intValue()
- Specified by:
intValue in class Number
isInfinite
public boolean isInfinite()
isInfinite
public static boolean isInfinite(float v)
isNaN
public boolean isNaN()
isNaN
public static boolean isNaN(float v)
longValue
public long longValue()
- Specified by:
longValue in class Number
parseFloat
public static float parseFloat(String s)
shortValue
public short shortValue()
- Overrides:
shortValue in class Number
toString
public String toString()
- Overrides:
toString in class Object
toString
public static String toString(float f)
valueOf
public static Float valueOf(String s)
throws NumberFormatException
- Throws:
NumberFormatException
compare
public static int compare(float a,
float b)