Skip to content

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

@tomhamming

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.

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