public class NumericValue extends Number
Modifier and Type | Field and Description |
---|---|
static int |
F_DOUBLE |
static int |
F_FLOAT |
static int |
F_INT |
static int |
F_LONG |
static int |
F_LONGLONG |
static int |
F_UNSIGNED |
static int |
FF_SIZE |
Constructor and Description |
---|
NumericValue(int base,
String integer) |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
float |
floatValue() |
int |
getBase() |
String |
getExponent() |
int |
getExponentBase() |
int |
getFlags() |
String |
getFractionalPart() |
String |
getIntegerPart() |
int |
intValue() |
long |
longValue() |
BigDecimal |
toBigDecimal()
So, it turns out that parsing arbitrary bases into arbitrary
precision numbers is nontrivial, and this routine gets it wrong
in many important cases.
|
Number |
toJavaLangNumber() |
String |
toString() |
byteValue, shortValue
public static final int F_UNSIGNED
public static final int F_INT
public static final int F_LONG
public static final int F_LONGLONG
public static final int F_FLOAT
public static final int F_DOUBLE
public static final int FF_SIZE
public NumericValue(int base, String integer)
public int getBase()
public String getIntegerPart()
public String getFractionalPart()
public int getExponentBase()
public String getExponent()
public int getFlags()
public BigDecimal toBigDecimal()
public Number toJavaLangNumber()
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number