http://gwt-code-reviews.appspot.com/602801/diff/1/2 File user/super/com/google/gwt/emul/java/lang/Math.java (right):
http://gwt-code-reviews.appspot.com/602801/diff/1/2#newcode30 user/super/com/google/gwt/emul/java/lang/Math.java:30: // return (x <= 0.0) ? 0.0 - x : x; Oops, I meant to test the behavior for -0 (if such a thing actually exists in JS). In Java, doing 'return x < 0 ? -x : x' for x = -0 will return -0 instead of 0 as it should. On 2010/06/11 19:21:31, jat wrote:
Why are these comments being added?
http://gwt-code-reviews.appspot.com/602801/diff/1/2#newcode258 user/super/com/google/gwt/emul/java/lang/Math.java:258: return (Math.exp(x) - Math.exp(-x)) / 2.0; I've added a test case and made one needed fix. On 2010/06/11 19:21:31, jat wrote:
On these, do we need to do anything special with NaNs/infinity to get JRE-compatible behavior?
http://gwt-code-reviews.appspot.com/602801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
