Package java.lang
Class Float
java.lang.Object
java.lang.Number
java.lang.Float
- All Implemented Interfaces:
Serializable
,Comparable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final float
static final float
static final float
static final float
static final Class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
int
int
double
boolean
static int
floatToIntBits
(float var0) static int
floatToRawIntBits
(float var0) float
int
hashCode()
static float
intBitsToFloat
(int var0) int
intValue()
boolean
static boolean
isInfinite
(float var0) boolean
isNaN()
static boolean
isNaN
(float var0) long
static float
parseFloat
(String var0) short
toString()
static String
toString
(float var0) static Float
-
Field Details
-
MAX_VALUE
public static final float MAX_VALUE- See Also:
-
MIN_VALUE
public static final float MIN_VALUE- See Also:
-
NaN
public static final float NaN- See Also:
-
POSITIVE_INFINITY
public static final float POSITIVE_INFINITY- See Also:
-
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY- See Also:
-
TYPE
-
-
Constructor Details
-
Float
public Float(float var0) -
Float
public Float(double var0) -
Float
- Throws:
NumberFormatException
-
-
Method Details
-
compareTo
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
byteValue
public byte byteValue() -
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
equals
-
floatToIntBits
public static int floatToIntBits(float var0) -
floatToRawIntBits
public static int floatToRawIntBits(float var0) -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
hashCode
public int hashCode() -
intBitsToFloat
public static float intBitsToFloat(int var0) -
intValue
public int intValue() -
isInfinite
public boolean isInfinite() -
isInfinite
public static boolean isInfinite(float var0) -
isNaN
public boolean isNaN() -
isNaN
public static boolean isNaN(float var0) -
longValue
public long longValue() -
parseFloat
- Throws:
NumberFormatException
-
shortValue
public short shortValue()- Overrides:
shortValue
in classNumber
-
toString
-
toString
-
valueOf
- Throws:
NumberFormatException
-