public final class BigDecimalMath extends NumberMath
Modifier and Type | Field and Description |
---|---|
static int |
DIVISION_EXTRA_PRECISION |
static int |
DIVISION_MIN_SCALE |
static BigDecimalMath |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected Number |
absImpl(Number number) |
Number |
addImpl(Number left,
Number right) |
int |
compareToImpl(Number left,
Number right) |
Number |
divideImpl(Number left,
Number right) |
Number |
multiplyImpl(Number left,
Number right) |
Number |
subtractImpl(Number left,
Number right) |
protected Number |
unaryMinusImpl(Number left) |
protected Number |
unaryPlusImpl(Number left) |
abs, add, and, andImpl, bitwiseNegate, bitwiseNegateImpl, compareTo, createUnsupportedException, divide, getMath, intdiv, intdivImpl, isBigDecimal, isBigInteger, isByte, isFloatingPoint, isInteger, isLong, isShort, leftShift, leftShiftImpl, mod, modImpl, multiply, or, orImpl, rightShift, rightShiftImpl, rightShiftUnsigned, rightShiftUnsignedImpl, subtract, toBigDecimal, toBigInteger, unaryMinus, unaryPlus, xor, xorImpl
public static final int DIVISION_EXTRA_PRECISION
public static final int DIVISION_MIN_SCALE
public static final BigDecimalMath INSTANCE
protected Number absImpl(Number number)
absImpl
in class NumberMath
public Number addImpl(Number left, Number right)
addImpl
in class NumberMath
public Number subtractImpl(Number left, Number right)
subtractImpl
in class NumberMath
public Number multiplyImpl(Number left, Number right)
multiplyImpl
in class NumberMath
public Number divideImpl(Number left, Number right)
divideImpl
in class NumberMath
public int compareToImpl(Number left, Number right)
compareToImpl
in class NumberMath
protected Number unaryMinusImpl(Number left)
unaryMinusImpl
in class NumberMath
protected Number unaryPlusImpl(Number left)
unaryPlusImpl
in class NumberMath