Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
A DESCRIPTION OF THE REQUEST : It is sufficiently tricky to do modulo arithmetic on negative integers that methods should be provided in the Math class to do this correctly. JUSTIFICATION : A common mistake is to do Math.abs(n) % MODULO. If there were methods in the library that would do it right, these bugs could be more easily avoided. I note that BigInteger has a mod() method (presumably for efficiency). ###@###.### 2005-06-08 06:41:24 GMT
|