Skip to content

Support for "raw" (ASCII or BCD) numbers #3

Description

@snej

Some applications require either huge numbers, or perfectly lossless decimal numbers (e.g. banking). 64-bit floating point doesn't work for these because it loses precision as numbers grow, and it can't represent negative powers of ten precisely.

The workaround in JSON is to store the number as a string containing an ASCII decimal representation. It would be useful to have a data type for this, so it could be recognized by all clients as a number. Accessing it as an int or double would be best-effort, accessing it as a string would return the exact string given.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions