S
Sunny S
Hi,
When calculating a remainder, R, as a result of X / Y, you wouldn't expect R
to be greater than Y, right? Wrong!
Math.IEEERemainder( double.MaxValue, 1000.0 ) returns 1.99584030953472E+292.
I understand why and how this happens, but the point is that returning a
value that is greater than the divisor, 1000.0, is completely wrong and no
reason could be used as an excuse.
Incidentally, Math.IEEERemainder( double.MaxValue, 100.0 ) returns 0.0 as
expected.
Sunny S
When calculating a remainder, R, as a result of X / Y, you wouldn't expect R
to be greater than Y, right? Wrong!
Math.IEEERemainder( double.MaxValue, 1000.0 ) returns 1.99584030953472E+292.
I understand why and how this happens, but the point is that returning a
value that is greater than the divisor, 1000.0, is completely wrong and no
reason could be used as an excuse.
Incidentally, Math.IEEERemainder( double.MaxValue, 100.0 ) returns 0.0 as
expected.
Sunny S