Skip to content
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

Serializing floats as integers #82

Closed
adamghill opened this issue Dec 3, 2020 · 1 comment
Closed

Serializing floats as integers #82

adamghill opened this issue Dec 3, 2020 · 1 comment
Assignees

Comments

@adamghill
Copy link
Owner

If a float in Python ends in zero then JavaScript converts it to an integer, e.g. 1.0 in Python will be converted to 1 in JavaScript. This causes issues with the checksum because the data is considered different. orison doesn't have a way to render floats as a string to preserve them correctly, so might need to handle it manually when serializing/deserializing.

@adamghill
Copy link
Owner Author

Done in 0e437c9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant