public static class MathArithTypeEnum.DivideDouble extends Object implements MathArithTypeEnum.Computer
Constructor and Description |
---|
DivideDouble(boolean divisionByZeroReturnsNull)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Number |
compute(Number d1,
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 Number compute(Number d1, Number d2)
MathArithTypeEnum.Computer
compute
in interface MathArithTypeEnum.Computer
d1
- is the first numberd2
- is the second number