java.lang
Class Float
java.lang.Object
java.lang.Number
java.lang.Float
- All Implemented Interfaces:
- Comparable, Serializable
- public final class Float
- extends Number
- implements Comparable
NaN
public static final float NaN
value
private float value
MAX_VALUE
public static final float MAX_VALUE
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY
POSITIVE_INFINITY
public static final float POSITIVE_INFINITY
MIN_VALUE
public static final float MIN_VALUE
serialVersionUID
private static final long serialVersionUID
TYPE
public static final Class TYPE
Float
public Float(double)
Float
public Float(float)
Float
public Float(String)
throws NumberFormatException
- Throws:
NumberFormatException
byteValue
public byte byteValue()
- Overrides:
byteValue in class Number
doubleValue
public double doubleValue()
floatValue
public float floatValue()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
intValue
public int intValue()
longValue
public long longValue()
shortValue
public short shortValue()
- Overrides:
shortValue in class Number
isInfinite
public boolean isInfinite()
isNaN
public boolean isNaN()
floatToIntBits
public static int floatToIntBits(float)
floatToRawIntBits
public static int floatToRawIntBits(float)
isInfinite
public static boolean isInfinite(float)
isNaN
public static boolean isNaN(float)
compare
public static int compare(float,
float)
intBitsToFloat
public static float intBitsToFloat(int)
compareTo
public int compareTo(Float)
compareTo
public int compareTo(Object)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
toString
public static String toString(float)
parseFloat
public static float parseFloat(String)
throws NumberFormatException
- Throws:
NumberFormatException
valueOf
public static Float valueOf(String)
throws NumberFormatException
- Throws:
NumberFormatException
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.