Class FloatingPointMath
java.lang.Object
org.codehaus.groovy.runtime.typehandling.NumberMath
org.codehaus.groovy.runtime.typehandling.FloatingPointMath
FloatingPoint (Double and Float) NumberMath operations
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareToImpl
(Number left, Number right) divideImpl
(Number left, Number right) multiplyImpl
(Number left, Number right) remainderImpl
(Number left, Number right) subtractImpl
(Number left, Number right) unaryMinusImpl
(Number left) unaryPlusImpl
(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, remainder, rightShift, rightShiftImpl, rightShiftUnsigned, rightShiftUnsignedImpl, subtract, toBigDecimal, toBigInteger, unaryMinus, unaryPlus, xor, xorImpl
-
Field Details
-
INSTANCE
-
-
Method Details
-
absImpl
- Specified by:
absImpl
in classNumberMath
-
addImpl
- Specified by:
addImpl
in classNumberMath
-
subtractImpl
- Specified by:
subtractImpl
in classNumberMath
-
multiplyImpl
- Specified by:
multiplyImpl
in classNumberMath
-
divideImpl
- Specified by:
divideImpl
in classNumberMath
-
compareToImpl
- Specified by:
compareToImpl
in classNumberMath
-
remainderImpl
- Overrides:
remainderImpl
in classNumberMath
-
modImpl
- Overrides:
modImpl
in classNumberMath
-
unaryMinusImpl
- Specified by:
unaryMinusImpl
in classNumberMath
-
unaryPlusImpl
- Specified by:
unaryPlusImpl
in classNumberMath
-