JavaMoney / jsr354-ri

JSR 354 - Moneta: Reference Implementation
Other
344 stars 101 forks source link

FastMoney.divide by zero behaves differently for boxed and unboxed doubles #250

Closed marschall closed 5 years ago

marschall commented 5 years ago

FastMoney.divide by zero throws ArithmeticException for boxed Doubles but returns MAX_VALUE unboxed doubles.

stokito commented 5 years ago

Please also make the similar change for the divideAndRemainder() method