Package org.teavm.classlib.java.lang
Class TFloat
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TFloat
- All Implemented Interfaces:
TSerializable
,TComparable<TFloat>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final float
static final int
static final float
static final float
static final float
static final float
static final float
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(float a, float b) int
double
boolean
static int
floatToIntBits
(float value) static int
floatToRawIntBits
(float value) float
int
hashCode()
static int
hashCode
(float f) static float
intBitsToFloat
(int bits) int
intValue()
static boolean
isFinite
(float v) boolean
static boolean
isInfinite
(float v) boolean
isNaN()
static boolean
isNaN
(float v) long
static float
parseFloat
(String string) static String
toHexString
(float f) toString()
static String
toString
(float d) static TFloat
valueOf
(float d) static TFloat
Methods inherited from class org.teavm.classlib.java.lang.TNumber
byteValue, shortValue
-
Field Details
-
POSITIVE_INFINITY
public static final float POSITIVE_INFINITY- See Also:
-
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY- See Also:
-
NaN
public static final float NaN- See Also:
-
MAX_VALUE
public static final float MAX_VALUE- See Also:
-
MIN_VALUE
public static final float MIN_VALUE- See Also:
-
MIN_NORMAL
public static final float MIN_NORMAL- See Also:
-
MAX_EXPONENT
public static final int MAX_EXPONENT- See Also:
-
MIN_EXPONENT
public static final int MIN_EXPONENT- See Also:
-
SIZE
public static final int SIZE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
TYPE
-
-
Constructor Details
-
TFloat
public TFloat(float value) -
TFloat
public TFloat(double value) -
TFloat
- Throws:
TNumberFormatException
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classTNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classTNumber
-
valueOf
-
toString
-
toString
-
equals
-
hashCode
public int hashCode() -
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
- Throws:
NumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
isNaN
public boolean isNaN() -
isInfinite
public boolean isInfinite() -
compare
public static int compare(float a, float b) -
compareTo
- Specified by:
compareTo
in interfaceTComparable<TFloat>
-
floatToRawIntBits
public static int floatToRawIntBits(float value) -
floatToIntBits
public static int floatToIntBits(float value) -
intBitsToFloat
public static float intBitsToFloat(int bits) -
toHexString
-