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

Built-in Format Json command loses precision on high Int64 values #372

Open
tomhamming opened this issue Aug 16, 2023 · 0 comments
Open

Comments

@tomhamming
Copy link

If you format this example json string using the built-in Format Json command:

{"id": 6150769120280496265}

You get this output:

{
  "id": 6150769120280496000
}

This might be because the Number type in Javascript is a floating-point number and reserves some of its bits for decimal points. To store a full Int64 value, you need BigInt.

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