Class FloatingPointMath
java.lang.Object
org.codehaus.groovy.runtime.typehandling.NumberMath
org.codehaus.groovy.runtime.typehandling.FloatingPointMath
public final class FloatingPointMath extends NumberMath
FloatingPoint (Double and Float) NumberMath operations
-
Field Summary
Fields Modifier and Type Field Description static FloatingPointMathINSTANCE -
Method Summary
Modifier and Type Method Description protected NumberabsImpl(Number number)NumberaddImpl(Number left, Number right)intcompareToImpl(Number left, Number right)NumberdivideImpl(Number left, Number right)protected NumbermodImpl(Number left, Number right)NumbermultiplyImpl(Number left, Number right)NumbersubtractImpl(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
-
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
-
modImpl
- Overrides:
modImplin classNumberMath
-
unaryMinusImpl
- Specified by:
unaryMinusImplin classNumberMath
-
unaryPlusImpl
- Specified by:
unaryPlusImplin classNumberMath
-