Class BigDecimalMath
java.lang.Object
org.codehaus.groovy.runtime.typehandling.NumberMath
org.codehaus.groovy.runtime.typehandling.BigDecimalMath
BigDecimal NumberMath operations
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected NumberintcompareToImpl(Number left, Number right) divideImpl(Number left, Number right) protected NumbermultiplyImpl(Number left, Number right) subtractImpl(Number left, Number right) protected NumberunaryMinusImpl(Number left) protected NumberunaryPlusImpl(Number left) Methods inherited from class org.codehaus.groovy.runtime.typehandling.NumberMath
abs, add, and, andImpl, bitwiseNegate, bitwiseNegateImpl, compareTo, createUnsupportedException, divide, getMath, intdiv, intdivImpl, isBigDecimal, isBigInteger, isByte, isFloatingPoint, isInteger, isLong, isShort, leftShift, leftShiftImpl, mod, multiply, or, orImpl, rightShift, rightShiftImpl, rightShiftUnsigned, rightShiftUnsignedImpl, subtract, toBigDecimal, toBigInteger, unaryMinus, unaryPlus, xor, xorImpl
-
Field Details
-
DIVISION_EXTRA_PRECISION
public static final int DIVISION_EXTRA_PRECISION -
DIVISION_MIN_SCALE
public static final int DIVISION_MIN_SCALE -
INSTANCE
-
-
Method Details
-
absImpl
- Specified by:
absImplin classNumberMath
-
addImpl
- Specified by:
addImplin classNumberMath
-
subtractImpl
- Specified by:
subtractImplin classNumberMath
-
multiplyImpl
- Specified by:
multiplyImplin classNumberMath
-
divideImpl
- Specified by:
divideImplin classNumberMath
-
compareToImpl
- Specified by:
compareToImplin classNumberMath
-
unaryMinusImpl
- Specified by:
unaryMinusImplin classNumberMath
-
unaryPlusImpl
- Specified by:
unaryPlusImplin classNumberMath
-
modImpl
- Overrides:
modImplin classNumberMath
-