HugeDecimal¶
-
public final class
HugeDecimalextends Number implements CharSequence¶ HugeDecimal is for numbers that are too big to parse with BigDecimal through normal means. Note that we will frequently convert to strings during conversion, so sensitive data should either a) not be stored in numeric types or b) should be retrieved from HugeDecimal.charSequenceValue()
Methods¶
bigDecimalValue¶
-
public BigDecimal
bigDecimalValue()¶ Get our value converted to a BigDecimal.
Throws: - JSONException – On sequence read failure.
- IOException – On IO error with resource file.
Returns: a BigDecimal representation of our character sequence.
bigIntegerValue¶
-
public BigInteger
bigIntegerValue()¶ Get our value converted to a BigInteger.
Throws: - JSONException – On sequence read failure.
- IOException – On IO error with resource file.
Returns: a BigInteger representation of our character sequence.
charSequenceValue¶
-
public CharSequence
charSequenceValue()¶ Get our raw character sequence value.
Returns: Our raw character sequence value.
compareByBigDecimal¶
-
boolean
compareByBigDecimal(HugeDecimal parOther)¶
doubleValue¶
-
public double
doubleValue()¶ Get our double value.
Throws: - JSONRuntimeException – On error.
Returns: A double representation of our value.
floatValue¶
-
public float
floatValue()¶ Get our float value.
Throws: - JSONRuntimeException – On error.
Returns: A float representation of our value.
intValue¶
-
public int
intValue()¶ Get our integer value.
Throws: - JSONRuntimeException – On error.
Returns: An integer representation of our value.
longValue¶
-
public long
longValue()¶ Get our long value.
Throws: - JSONRuntimeException – On error.
Returns: A long representation of our value.
subSequence¶
-
public CharSequence
subSequence(int parStart, int parEnd)¶