Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.lang.Float

Availability: JDK 1.0

public final class Float extends Number {
   // Public Constructors
      public Float(float value);
      public Float(double value);
      public Float(String s) throws NumberFormatException;
   // Constants
      public static final float MAX_VALUE;
      public static final float MIN_VALUE;
      public static final float NEGATIVE_INFINITY;
      public static final float NaN;
      public static final float POSITIVE_INFINITY;
1.1  public static final Class TYPE;
   // Class Methods
      public static native int floatToIntBits(float value);
      public static native float intBitsToFloat(int bits);
      public static boolean isInfinite(float v);
      public static boolean isNaN(float v);
      public static String toString(float f);
      public static Float valueOf(String s) throws NumberFormatException;
   // Public Instance Methods
1.1  public byte byteValue();  // Overrides Number.byteValue()
      public double doubleValue();  // Defines Number.doubleValue()
      public boolean equals(Object obj);  // Overrides Object.equals()
      public float floatValue();  // Defines Number.floatValue()
      public int hashCode();  // Overrides Object.hashCode()
      public int intValue();  // Defines Number.intValue()
      public boolean isInfinite();
      public boolean isNaN();
      public long longValue();  // Defines Number.longValue()
1.1  public short shortValue();  // Overrides Number.shortValue()
      public String toString();  // Overrides Object.toString()
}
Returned By:
Float.valueOf().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.