public class TDouble extends TNumber implements TComparable<TDouble>
Modifier and Type | Field and Description |
---|---|
static int |
MAX_EXPONENT |
static double |
MAX_VALUE |
static int |
MIN_EXPONENT |
static double |
MIN_NORMAL |
static double |
MIN_VALUE |
static double |
NaN |
static double |
NEGATIVE_INFINITY |
static double |
POSITIVE_INFINITY |
static int |
SIZE |
static Class<Double> |
TYPE |
Constructor and Description |
---|
TDouble(double value) |
TDouble(TString value) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(double a,
double b) |
int |
compareTo(TDouble other) |
static double |
decimalExponent(int n) |
static long |
doubleToLongBits(double value) |
static long |
doubleToRawLongBits(double value) |
double |
doubleValue() |
boolean |
equals(Object other) |
float |
floatValue() |
int |
hashCode() |
static int |
hashCode(double d) |
int |
intValue() |
static boolean |
isFinite(double v) |
boolean |
isInfinite() |
static boolean |
isInfinite(double v) |
boolean |
isNaN() |
static boolean |
isNaN(double v) |
static double |
longBitsToDouble(long bits) |
long |
longValue() |
static double |
parseDouble(TString string) |
static String |
toHexString(double d) |
String |
toString() |
static String |
toString(double d) |
static TDouble |
valueOf(double d) |
static TDouble |
valueOf(TString string) |
byteValue, shortValue
public static final double POSITIVE_INFINITY
public static final double NEGATIVE_INFINITY
public static final double NaN
public static final double MAX_VALUE
public static final double MIN_NORMAL
public static final double MIN_VALUE
public static final int MAX_EXPONENT
public static final int MIN_EXPONENT
public static final int SIZE
public TDouble(double value)
public TDouble(TString value) throws TNumberFormatException
TNumberFormatException
public double doubleValue()
doubleValue
in class TNumber
public float floatValue()
floatValue
in class TNumber
public static TDouble valueOf(double d)
public static String toString(double d)
public static double parseDouble(TString string) throws TNumberFormatException
TNumberFormatException
public static double decimalExponent(int n)
public static int hashCode(double d)
public static int compare(double a, double b)
public int compareTo(TDouble other)
compareTo
in interface TComparable<TDouble>
public boolean isNaN()
public boolean isInfinite()
public static boolean isNaN(double v)
public static boolean isInfinite(double v)
public static boolean isFinite(double v)
public static long doubleToRawLongBits(double value)
public static long doubleToLongBits(double value)
public static double longBitsToDouble(long bits)
public static String toHexString(double d)
Copyright © 2019. All rights reserved.