Class TFloat

All Implemented Interfaces:
TSerializable, TComparable<TFloat>

public class TFloat extends TNumber implements TComparable<TFloat>
  • Field Details

  • Constructor Details

  • Method Details

    • intValue

      public int intValue()
      Specified by:
      intValue in class TNumber
    • longValue

      public long longValue()
      Specified by:
      longValue in class TNumber
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class TNumber
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class TNumber
    • valueOf

      public static TFloat valueOf(float d)
    • toString

      public static String toString(float d)
    • toString

      public String toString()
      Overrides:
      toString in class TObject
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class TObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TObject
    • hashCode

      public static int hashCode(float f)
    • isNaN

      public static boolean isNaN(float v)
    • isInfinite

      public static boolean isInfinite(float v)
    • isFinite

      public static boolean isFinite(float v)
    • parseFloat

      public static float parseFloat(TString string) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • valueOf

      public static TFloat valueOf(TString s) throws TNumberFormatException
      Throws:
      TNumberFormatException
    • isNaN

      public boolean isNaN()
    • isInfinite

      public boolean isInfinite()
    • compare

      public static int compare(float f1, float f2)
    • compareTo

      public int compareTo(TFloat other)
      Specified by:
      compareTo in interface TComparable<TFloat>
    • floatToRawIntBits

      public static int floatToRawIntBits(float value)
    • floatToIntBits

      public static int floatToIntBits(float value)
    • intBitsToFloat

      public static float intBitsToFloat(int bits)
    • toHexString

      public static String toHexString(float f)