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

Format float and double values as JSON with full precision #225

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

AArnott
Copy link
Owner

@AArnott AArnott commented Jan 23, 2025

This actually ensures that certain values (e.g. double.MaxValue) can be deserialized later, since otherwise it will round up, going beyond double.MaxValue.

Thanks to @guojiancong for finding and sharing this (with MessagePack-CSharp).

This actually ensures that certain values (e.g. `double.MaxValue`) can be deserialized later, since otherwise it will round *up*, going *beyond* `double.MaxValue`.

Thanks to @guojiancong for finding and sharing this (with MessagePack-CSharp).
@AArnott AArnott enabled auto-merge January 23, 2025 14:08
@AArnott AArnott merged commit 06ef215 into main Jan 23, 2025
2 checks passed
@AArnott AArnott deleted the fixJSONformatting branch January 23, 2025 14:12
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

Successfully merging this pull request may close these issues.

1 participant