8000 Support for "raw" (ASCII or BCD) numbers · Issue #3 · couchbase/fleece · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support for "raw" (ASCII or BCD) numbers #3
Open
@snej

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.

Metadata

Metadata

Assignees

N 36A8 o 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

      0