Skip to content

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

Open

Description

@tomhamming

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions