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):
The most recent version of JsonTools can reformat this file without losing precision on any of these numbers.
EDIT: As of v8.2.0.3, JsonTools now incorrectly represents -6553693.3617752995 as -6553693.3617753, but it still correctly handles all the other numbers above.
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: