-
Notifications
You must be signed in to change notification settings - Fork 10
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
Loss of precision when formatting number #78
Comments
Hmmm, unfortunately I can replicate this bug with the latest version of JsonTools. Thanks for bringing it to my attention. This appears to be a known issue with the way C# formats double-precision floating point numbers (which I use to represent the |
previously the string representation of doubles was unnecessarily low-precision, causing loss of data as described in #78 Unfortunately, this means that some numbers with multiple equally valid representations (for example, 2.2 could be represented as "2.2" or "2.2000000000000002") will now be represented in the longest way. Also add RandomStringFromRegex, although this has not yet been fully implemented or incorporated into any external code.
This issue should be resolved by this commit. Again, sorry for not recognizing this issue sooner. I plan to release version 8.1 on the Plugins Manager fairly soon, and that version will include this fix. |
The fix to this issue is now in v8.1, which I will try to get listed in the Notepad++ Plugin List ASAP. Once the next version of Notepad++ is released that lists that version of JsonTools, I will wait a little while and then close this issue. |
Becomes
Does not happen with JSON_VIEWER plugin
The text was updated successfully, but these errors were encountered: