Reviewer needed: 6282196 There should be Math.mod(number, modulo) methods (original) (raw)
Roger Riggs Roger.Riggs at oracle.com
Mon Mar 5 13:38:47 UTC 2012
- Previous message: hg: jdk8/tl/jdk: 7145043: HttpServerProvider.java:81: warning - @code("httpServerProvider") is an unknown tag
- Next message: hg: jdk8/tl/jdk: 2 new changesets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
CR 6282196 There should be Math.mod(number, modulo) methods http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6282196
Requests that floor and modulus methods be provided for primitive types. Floor division is pretty straight-forward, rounding toward minus infinity. For modulus of int and long, the sign and range follow the exiting floor method in java.util.Math and satisfy the relation that mod(x, y) = (x - floorDiv(x, y) * y).
Please review, http://cr.openjdk.java.net/~rriggs/6282196.1/
Thanks, Roger
- Previous message: hg: jdk8/tl/jdk: 7145043: HttpServerProvider.java:81: warning - @code("httpServerProvider") is an unknown tag
- Next message: hg: jdk8/tl/jdk: 2 new changesets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]