Maven module :un.api : api-math :
Class :
un.impl.number.LargeDecimal
Extends/Implements :
un.impl.number.un.api.number.Number
Subclasses : -
Variables :
NEGATIVE,
POSITIVE,
ROUND_CEILING,
ROUND_DOWN,
ROUND_FLOOR,
ROUND_HALF_DOWN,
ROUND_HALF_EVEN,
ROUND_HALF_UP,
ROUND_UNNECESSARY,
ROUND_UP,
NEGATIVE_ONE,
ZERO,
ONE,
TEN,
ONE_TENTH,
INFINITY,
NEGATIVE_INFINITY,
NAN
Functions :
LargeDecimal,
setDecimalSeparator,
setThousandsSeparator,
setUseThousandsSeparator,
flipSeparators,
setPrecision,
setThrowExceptionOnNaN,
setThrowExceptionOnDivisionByZero,
setUseInfinityOnDivisionByZero,
zero,
isZero,
one,
isOne,
abs,
negate,
fma,
add,
mult,
subtract,
divide,
ceil,
round,
round,
floor,
mod,
mod,
pow,
powNaN,
sqrt,
root,
toInteger,
toLong,
toFloat,
toDouble,
equals,
compare,
toString
public boolean
NEGATIVE
public boolean
POSITIVE
public int
ROUND_CEILING
public int
ROUND_DOWN
public int
ROUND_FLOOR
public int
ROUND_HALF_DOWN
public int
ROUND_HALF_EVEN
public int
ROUND_HALF_UP
public int
ROUND_UNNECESSARY
public int
ROUND_UP
public LargeDecimal
NEGATIVE_ONE
public LargeDecimal
ZERO
public LargeDecimal
ONE
public LargeDecimal
TEN
public LargeDecimal
ONE_TENTH
public LargeDecimal
INFINITY
public LargeDecimal
NEGATIVE_INFINITY
public LargeDecimal
NAN
public void
LargeDecimal (String decimal)
public void
setDecimalSeparator (char decimalSeparator)
public void
setThousandsSeparator (char thousandsSeparator)
public void
setUseThousandsSeparator (boolean b)
public void
flipSeparators ()
public void
setPrecision (int precision)
public void
setThrowExceptionOnNaN (boolean b)
public void
setThrowExceptionOnDivisionByZero (boolean b)
public void
setUseInfinityOnDivisionByZero (boolean b)
public Arithmetic
zero ()
public boolean
isZero ()
public Arithmetic
one ()
public boolean
isOne ()
public LargeDecimal
abs ()
public LargeDecimal
negate ()
public LargeDecimal
fma (LargeDecimal multiplicand, LargeDecimal addend)
public LargeDecimal
add (Arithmetic add)
public LargeDecimal
mult (Arithmetic mul)
public LargeDecimal
subtract (Arithmetic sub)
public LargeDecimal
divide (Arithmetic div)
public LargeDecimal
ceil (int precision)
public LargeDecimal
round (int precision)
public LargeDecimal
round (int precision, int roundingMode)
public LargeDecimal
floor (int precision)
public LargeDecimal
mod (LargeDecimal divisor, int roundingMode)
public LargeDecimal
mod (LargeDecimal divisor)
public LargeDecimal
pow (int n)
public LargeDecimal
powNaN (int n)
public LargeDecimal
sqrt ()
public LargeDecimal
root (int n)
public int
toInteger ()
public long
toLong ()
public float
toFloat ()
public double
toDouble ()
public boolean
equals (LargeDecimal secondary)
public int
compare (LargeDecimal comparator)
public String
toString ()
Arithmetic operations (add, subtract, multiply, divide, square root, fused multiply–add, remainder...)
add(LargeDecimal) [x]
subtract(LargeDecimal) [x]
multiply(LargeDecimal) [x]
divide(LargeDecimal) [x]
sqrt() [x]
fma(LargeDecimal, LargeDecimal) [x]
mod(LargeDecimal) [x]
pow(int) [x]
Conversions (between formats, to and from strings, etc.)
toString() [x]
Scaling
Scale: decimal position? [x]
Copying and manipulating the sign (abs, negate, etc.)
abs() [x]
negate() [x]
Comparisons and total ordering
compare() [x]
equals() [x]
getSign() [x]
Classification and testing for NaNs, etc.
NaN, Infinity, Sign [x]
Testing and setting flags... [x]
Miscellaneous/Optional operations.
ceil() [x]
floor() [x]
round() [x]
... [?] TODO: Add more optional operations
roundingMode() [x]
SheNaNigans
Deal with operations by 0, [x]
infinities, or NaN