-
Notifications
You must be signed in to change notification settings - Fork 50
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
Float / Double serialized in unnatural way #68
Comments
A similar issue can be seen with doubles which are integer values:
or
I would like to see:
or
or
I have a repro for this one:
Note: cross posted on Stack Overflow |
I am unable to reproduce the first issue in a small repro so far. I have prepared a commit for the second issue - once the node is tagged as INT, integer format is also used for the number, therefore the tag will not be emitted (it is emitted only when the natural number string interpretation does not match the tag). Hopefully this could become a PR sometimes soon. If anyone can review or comment, I will be glad. |
I have a repro for the issue, the cause seems to lie in the parser, not in the printer:
The output is The cause of this is that while parsing |
(cherry picked from commit ec4c896)
(cherry picked from commit ec4c896)
Fractional double values are printed in a quite unexpected way. This is what I get:
While not incorrect, this is quite unexpected and not much human readable. This is what I would like to get:
The text was updated successfully, but these errors were encountered: