Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.1
-
None
-
None
Description
The first assertion in the test case below succeeds, but the second fails
/* * http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6430675 */ @Test public void testRoundDown() { final double x = 0x1.fffffffffffffp-2; Assert.assertTrue(x < 0.5d); Assert.assertEquals(0, FastMath.round(x)); }
This is being tracked as a JDK (actually spec) bug here:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6430675