This repository was archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Floats do not roundtrip correctly #113
Comments
Running this on nightly gives:
|
Er oops, commented too soon, running this on nightly gives:
Which is to say that these are indeed different (the floating point printing routines were recently greatly improved) but it appears the parsing code is just a little off. |
Looks like the std library has the same behaviour - http://is.gd/H6W6oe |
It's kinda weird that the compiler doesn't appear to be using the same float parser. |
Dupe of rust-lang/rust#7648 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Other implementations eg in v8 get this right. The default rust printer also gets it right.
The text was updated successfully, but these errors were encountered: