Package org.teavm.classlib.java.lang
Class TDouble
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TDouble
- All Implemented Interfaces:
TSerializable
,TComparable<TDouble>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static double
static int
static double
static double
static double
static double
static double
static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare(double a, double b)
int
static double
decimalExponent(int n)
static long
doubleToLongBits(double value)
static long
doubleToRawLongBits(double value)
double
boolean
float
int
hashCode()
static int
hashCode(double d)
int
intValue()
static boolean
isFinite(double v)
boolean
static boolean
isInfinite(double v)
boolean
isNaN()
static boolean
isNaN(double v)
static double
longBitsToDouble(long bits)
long
static double
parseDouble(TString string)
static String
toHexString(double d)
toString()
static String
toString(double d)
static TDouble
valueOf(double d)
static TDouble
Methods inherited from class org.teavm.classlib.java.lang.TNumber
byteValue, shortValue
-
Field Details
-
POSITIVE_INFINITY
public static final double POSITIVE_INFINITY- See Also:
- Constant Field Values
-
NEGATIVE_INFINITY
public static final double NEGATIVE_INFINITY- See Also:
- Constant Field Values
-
NaN
public static final double NaN -
MAX_VALUE
public static final double MAX_VALUE- See Also:
- Constant Field Values
-
MIN_NORMAL
public static final double MIN_NORMAL- See Also:
- Constant Field Values
-
MIN_VALUE
public static final double MIN_VALUE- See Also:
- Constant Field Values
-
MAX_EXPONENT
public static final int MAX_EXPONENT- See Also:
- Constant Field Values
-
MIN_EXPONENT
public static final int MIN_EXPONENT- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
TYPE
-
-
Constructor Details
-
TDouble
public TDouble(double value) -
TDouble
- Throws:
TNumberFormatException
-
-
Method Details
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classTNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classTNumber
-
valueOf
-
toString
-
valueOf
-
parseDouble
- Throws:
TNumberFormatException
-
decimalExponent
public static double decimalExponent(int n) -
toString
-
equals
-
hashCode
public int hashCode() -
hashCode
public static int hashCode(double d) -
compare
public static int compare(double a, double b) -
compareTo
- Specified by:
compareTo
in interfaceTComparable<TDouble>
-
isNaN
public boolean isNaN() -
isInfinite
public boolean isInfinite() -
isNaN
public static boolean isNaN(double v) -
isInfinite
public static boolean isInfinite(double v) -
isFinite
public static boolean isFinite(double v) -
doubleToRawLongBits
public static long doubleToRawLongBits(double value) -
doubleToLongBits
public static long doubleToLongBits(double value) -
longBitsToDouble
public static double longBitsToDouble(long bits) -
toHexString
-