You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's take this simplified json as an example {"MyDecimal":5.107091491635510056019771245}
If I format/pretty print this data then will the result be
This has effectively corrupted the data.
The text was updated successfully, but these errors were encountered:
Nezrahm
changed the title
Pretty print can corrupt the data (loose precision on numbers)
Pretty print can corrupt the data (lost precision on numbers)
Sep 12, 2024
The number described in this original issue has higher precision than the maximum precision for a double (so some loss of precision is literally inevitable), but here are some numbers where JSON-Viewer loses precision unnecessarily (i.e., a better double-formatting algorithm could retain that precision):
Let's take this simplified json as an example
{"MyDecimal":5.107091491635510056019771245}
If I format/pretty print this data then will the result be
This has effectively corrupted the data.
The text was updated successfully, but these errors were encountered: