Package foundry.veil.lib.anarres.cpp
Class NumericValue
java.lang.Object
java.lang.Number
foundry.veil.lib.anarres.cpp.NumericValue
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
float
int
getBase()
@Nullable String
int
int
getFlags()
@Nullable String
@NotNull String
int
intValue()
long
@NotNull BigDecimal
So, it turns out that parsing arbitrary bases into arbitrary precision numbers is nontrivial, and this routine gets it wrong in many important cases.@NotNull Number
toString()
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
F_UNSIGNED
public static final int F_UNSIGNED- See Also:
-
F_INT
public static final int F_INT- See Also:
-
F_LONG
public static final int F_LONG- See Also:
-
F_LONGLONG
public static final int F_LONGLONG- See Also:
-
F_FLOAT
public static final int F_FLOAT- See Also:
-
F_DOUBLE
public static final int F_DOUBLE- See Also:
-
FF_SIZE
public static final int FF_SIZE- See Also:
-
-
Constructor Details
-
NumericValue
-
-
Method Details
-
getBase
public int getBase() -
getIntegerPart
-
getFractionalPart
-
getExponentBase
public int getExponentBase() -
getExponent
-
getFlags
public int getFlags() -
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. -
toJavaLangNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
toString
-