Float.parseFloat rounding bug (original) (raw)
Louis Wasserman wasserman.louis at gmail.com
Sun Jun 17 18:31:57 UTC 2012
- Previous message: hg: jdk8/tl/jdk: 7177556: Put TestProviderLeak.java on the ProblemList until test can be reworked
- Next message: hg: jdk8/tl: 8 new changesets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I had a patch <https://bugs.openjdk.java.net/show_bug.cgi?id=100208>for this Sun bug <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6358355>, and was hoping it could get reviewed. The simplest failing test case is probably
public class Foo { public static void main(String[] args) { System.out.println(144115196665790480f <= 144115196665790481f); } }
which quite surprisingly prints false. What can I do to make this happen?
(I'm interested because once Float.parseFloat is correct, this improvement to BigInteger.floatValue() and doubleValue()<http://microbenchmarks.appspot.com/run/wasserman.louis@gmail.com/DoubleBenchmark>will pass tests, whereas right now the tests expect the wrong behavior.)
Louis Wasserman wasserman.louis at gmail.com http://profiles.google.com/wasserman.louis
- Previous message: hg: jdk8/tl/jdk: 7177556: Put TestProviderLeak.java on the ProblemList until test can be reworked
- Next message: hg: jdk8/tl: 8 new changesets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]