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

Show trailing zeroes #77

Open
hylkevds opened this issue Jul 14, 2016 · 1 comment
Open

Show trailing zeroes #77

hylkevds opened this issue Jul 14, 2016 · 1 comment

Comments

@hylkevds
Copy link

JSON allows numbers to have trailing zeroes to signify the precision of the value. Thus 2.00 is more precise than 2.0. Json-formatter currently discards all trailing zeroes, so 2.00 and 2.0 are both shown as 2.

Is this a limitation of javascript/V8 or would it be possible to retain the precision?

@nicole-ashley
Copy link

This is fixed in https://github.com/nikrolls/json-formatter/releases/tag/0.10.0, currently rolling out to the Chrome and Edge stores.

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

2 participants