New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubles in hex notation fail to parse #3348
Comments
Thanks for the report. There is no fundamental reason that this should not be supported. |
This is trickier than it looks. Wip here: 0.6.x...sjrd:parse-double-hex |
Since Float.parseFloat delegates to Double.parseDouble, we trivially get that one for free.
Since Float.parseFloat delegates to Double.parseDouble, we trivially get that one for free.
Since Float.parseFloat delegates to Double.parseDouble, we trivially get that one for free.
There is a bunch of test cases in Apache Harmony which you could consider grabbing. |
I have stopped looking at Harmony to be as independent as possible license-wise. I generated random test cases on the JVM, so now I've enough of them. |
Fix #3348: Support hexadecimal notation in Double.parseDouble.
Fixed in 2175de9. |
reproducer:
scala.util.Try("0x0p1".toDouble)
expected:
Success(0.0)
actual:
Failure(java.lang.NumberFormatException: For input string: "0x0p1")
The text was updated successfully, but these errors were encountered: