Skip to content

Option for parsers to intepret precision of numbers #152

@awwright

Description

@awwright

In some cases, parsers may want to expose the precision of a number in addition to its value -- especially for scientific cases where 1.2e4 is different than 12000.000 - same value, very different precisions.

In this case, we should allow parsers to define "integer" as "any number with a precision of exactly 1" instead of its current definition "any number with a zero fractional part".

This is a bit esoteric, but it is a totally valid use of JSON.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions