java.lang
Class Float

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Float

public final class Float
extends Number


Field Summary
static float MAX_VALUE
           
static float MIN_VALUE
           
static float NaN
           
static float NEGATIVE_INFINITY
           
static float POSITIVE_INFINITY
           
static Class TYPE
           
 
Constructor Summary
Float(double value)
           
Float(float value)
           
Float(String s)
           
 
Method Summary
 byte byteValue()
           
static int compare(float a, float b)
           
 double doubleValue()
           
 boolean equals(Object obj)
           
static int floatToIntBits(float value)
           
 float floatValue()
           
 int hashCode()
           
static float intBitsToFloat(int bits)
           
 int intValue()
           
 boolean isInfinite()
           
static boolean isInfinite(float v)
           
 boolean isNaN()
           
static boolean isNaN(float v)
           
 long longValue()
           
static float parseFloat(String s)
           
 short shortValue()
           
 String toString()
           
static String toString(float f)
           
static Float valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait
 

Field Detail

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
Constructor Detail

Float

public Float(float value)

Float

public Float(double value)

Float

public Float(String s)
      throws NumberFormatException
Throws:
NumberFormatException
Method Detail

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)