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

fullPrecisionFloats not working for some cases. #13

Open
zblcool opened this issue Jul 15, 2022 · 0 comments
Open

fullPrecisionFloats not working for some cases. #13

zblcool opened this issue Jul 15, 2022 · 0 comments

Comments

@zblcool
Copy link

zblcool commented Jul 15, 2022

Hi, I have used the lib and it significantly reduces the size of the object.
However, I noticed that even when I have made the fullPrecisionFloats to be true.
some of the attributes' 13th decimal places were still be rounded to the 12th decimal places. This might sound a little bit picky but I am just wondering is this something with JavaScript or if this can be avoided somehow.

The weird part is. For some of the fields, they got 17 or even 18 decimal places. but they remain the same as the original data.

  • workflow: original file -> stringify -> parsed

Left: original file ; Right: file parsed
Screen Shot 2022-07-15 at 11 07 07 am

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