public static class MathArithTypeEnum.DivideDouble extends java.lang.Object implements MathArithTypeEnum.Computer
Constructor and Description |
---|
DivideDouble(boolean divisionByZeroReturnsNull)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
compute(java.lang.Number d1,
java.lang.Number d2)
Computes using the 2 numbers a result number.
|
public DivideDouble(boolean divisionByZeroReturnsNull)
divisionByZeroReturnsNull
- false for division-by-zero returns infinity, true for nullpublic java.lang.Number compute(java.lang.Number d1, java.lang.Number d2)
MathArithTypeEnum.Computer
compute
in interface MathArithTypeEnum.Computer
d1
- is the first numberd2
- is the second number