-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Append ".0" to serialized floating_point values that are digits-only. #362
Comments
FYI: I checked PR #378 and added some comments there. |
The implementation details and relevant discussion is in the PR, so I think this can be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code is already smart enough to parse "123.0" as floating-point type.
The problem is that this does not round-trip, as the value serializes as "123", so now it is indistinguishable from pure-integer, and the floating-point-ness information is lost.
Proposed implementation for serializing numeric values below.
The text was updated successfully, but these errors were encountered: