home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 25 / CDROM25.iso / Share / prog / VJ11 / VJTRIAL.EXE / IE30Java.exe / classd.exe / java / lang / Float.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-01-27  |  1.4 KB  |  75 lines

  1. package java.lang;
  2.  
  3. public final class Float extends Number {
  4.    public static final float POSITIVE_INFINITY = InfinityF;
  5.    public static final float NEGATIVE_INFINITY = -InfinityF;
  6.    public static final float NaN = NaNF;
  7.    public static final float MAX_VALUE = 3.4028235E38F;
  8.    public static final float MIN_VALUE = 1.4E-45F;
  9.    private float value;
  10.  
  11.    public String toString() {
  12.       return String.valueOf(this.value);
  13.    }
  14.  
  15.    public static native int floatToIntBits(float var0);
  16.  
  17.    public static boolean isNaN(float var0) {
  18.       return var0 != var0;
  19.    }
  20.  
  21.    public boolean isNaN() {
  22.       return isNaN(this.value);
  23.    }
  24.  
  25.    public boolean equals(Object var1) {
  26.       return var1 != null && var1 instanceof Float && floatToIntBits(((Float)var1).value) == floatToIntBits(this.value);
  27.    }
  28.  
  29.    public Float(float var1) {
  30.       this.value = var1;
  31.    }
  32.  
  33.    public Float(double var1) {
  34.       this.value = (float)var1;
  35.    }
  36.  
  37.    public Float(String var1) throws NumberFormatException {
  38.       this(valueOf(var1));
  39.    }
  40.  
  41.    public int intValue() {
  42.       return (int)this.value;
  43.    }
  44.  
  45.    public long longValue() {
  46.       return (long)this.value;
  47.    }
  48.  
  49.    public float floatValue() {
  50.       return this.value;
  51.    }
  52.  
  53.    public int hashCode() {
  54.       return floatToIntBits(this.value);
  55.    }
  56.  
  57.    public double doubleValue() {
  58.       return (double)this.value;
  59.    }
  60.  
  61.    public static native Float valueOf(String var0) throws NumberFormatException;
  62.  
  63.    public static native float intBitsToFloat(int var0);
  64.  
  65.    public static boolean isInfinite(float var0) {
  66.       return var0 == POSITIVE_INFINITY || var0 == NEGATIVE_INFINITY;
  67.    }
  68.  
  69.    public boolean isInfinite() {
  70.       return isInfinite(this.value);
  71.    }
  72.  
  73.    public static native String toString(float var0);
  74. }
  75.