float in
an object. An object of type Float contains a single
field whose type is float.
In addition, this class provides several methods for converting a
float to a String and a
String to a float, as well as other
constants and methods useful when dealing with a
float.
package java.lang;
(>JDK1.0)public final
class Float extends Number {
// Constantes et champs protégés
(>JDK1.0) public static final float MAX_VALUE = 3.40282346638528860e+38f;
(>JDK1.0) public static final float MIN_VALUE = 1.40129846432481707e-45f;
(>JDK1.0) public static final float NaN = 0.0f / 0.0f;
(>JDK1.0) public static final float NEGATIVE_INFINITY = -1.0f / 0.0f;
(>JDK1.0) public static final float POSITIVE_INFINITY = 1.0f / 0.0f;
(>JDK1.1) public static final Class TYPE = Class.getPrimitiveClass("float");
// Constructeurs publiques
(>JDK1.0) public Float(float value);
(>JDK1.0) public Float(double value);
(>JDK1.0) public Float(String s)
throws NumberFormatException;
// Méthodes de classe publiques
(>JDK1.0) public static native int floatToIntBits(float value);
(>JDK1.0) public static native float intBitsToFloat(int bits);
(>JDK1.0) public static boolean isInfinite(float v);
(>JDK1.0) public static boolean isNaN(float v);
(>JDK1.0) public static String toString(float f);
(>JDK1.0) public static Float valueOf(String s)
throws NumberFormatException;
// Méthodes d'instance publiques
(>JDK1.1) public byte byteValue();
(>JDK1.0) public double doubleValue();
(>JDK1.0) public boolean equals(Object obj);
(>JDK1.0) public float floatValue();
(>JDK1.0) public int hashCode();
(>JDK1.0) public int intValue();
(>JDK1.0) public boolean isInfinite();
(>JDK1.0) public boolean isNaN();
(>JDK1.0) public long longValue();
(>JDK1.1) public short shortValue();
(>JDK1.0) public String toString();
}
|
| Christophe Merlet redfox@redfoxcenter.org | ©Tous droits réservés
11 septembre 1998 |