Groovy 2.2.1

org.codehaus.groovy.runtime.typehandling
[Java] 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

Authors:
Steve Goetze


Field Summary
static FloatingPointMath INSTANCE

 
Method Summary
protected Number absImpl(Number number)

Number addImpl(Number left, Number right)

int compareToImpl(Number left, Number right)

Number divideImpl(Number left, Number right)

protected Number modImpl(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)

 
Methods inherited from class NumberMath
abs, absImpl, add, addImpl, and, andImpl, bitwiseNegate, bitwiseNegateImpl, compareTo, compareToImpl, createUnsupportedException, divide, divideImpl, getMath, intdiv, intdivImpl, isBigDecimal, isBigInteger, isFloatingPoint, isInteger, isLong, leftShift, leftShiftImpl, mod, modImpl, multiply, multiplyImpl, or, orImpl, rightShift, rightShiftImpl, rightShiftUnsigned, rightShiftUnsignedImpl, subtract, subtractImpl, toBigDecimal, toBigInteger, unaryMinus, unaryMinusImpl, unaryPlus, unaryPlusImpl, xor, xorImpl
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

INSTANCE

public static final FloatingPointMath INSTANCE


 
Method Detail

absImpl

protected Number absImpl(Number number)


addImpl

public Number addImpl(Number left, Number right)


compareToImpl

public int compareToImpl(Number left, Number right)


divideImpl

public Number divideImpl(Number left, Number right)


modImpl

protected Number modImpl(Number left, Number right)


multiplyImpl

public Number multiplyImpl(Number left, Number right)


subtractImpl

public Number subtractImpl(Number left, Number right)


unaryMinusImpl

protected Number unaryMinusImpl(Number left)


unaryPlusImpl

protected Number unaryPlusImpl(Number left)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.