java.lang.Float (JDK 1.0)
This class provides an immutable object wrapper around the float primitive data type. valueOf() converts a string to a Float, floatValue() returns the primitive float value of a Float object, and there are methods for returning a Float value as a variety of other primitive types.
This class also provides some useful constants and static methods for testing float values. MIN_VALUE and MAX_VALUE are the smallest (closest to zero) and largest representable double values. isInfinite() in class method and instance method forms tests whether a float or a Float has an infinite value. Similarly, isNaN() tests whether a float or Float is not-a-number--this is a comparison that cannot be done directly because the NaN constant never tests equal to any other value, including itself. floatToIntBits() and intBitsToFloat() allow you to manipulate the bit representation of a float directly.
public final classFloatextends Number { //Public ConstructorspublicFloat(floatvalue); publicFloat(doublevalue); publicFloat(Strings) throws NumberFormatException; //Constantspublic static final floatMAX_VALUE; public static final floatMIN_VALUE; public static final floatNEGATIVE_INFINITY; public static final floatNaN; public static final floatPOSITIVE_INFINITY; 1.1public static final ClassTYPE; //Class Methodspublic static native intfloatToIntBits(floatvalue); public static native floatintBitsToFloat(intbits); public static booleanisInfinite(floatv); public static booleanisNaN(floatv); public static StringtoString(floatf); public static FloatvalueOf(Strings) throws NumberFormatException; //Public Instance Methods1.1public bytebyteValue(); //Overrides Numberpublic doubledoubleValue(); //Defines Numberpublic booleanequals(Objectobj); //Overrides Objectpublic floatfloatValue(); //Defines Numberpublic inthashCode(); //Overrides Objectpublic intintValue(); //Defines Numberpublic booleanisInfinite(); public booleanisNaN(); public longlongValue(); //Defines Number1.1public shortshortValue(); //Overrides Numberpublic StringtoString(); //Overrides Object}
Hierarchy:
Object->Number(Serializable)->Float
Returned By:
Float.valueOf()