Skip to content

JSON parser strips leading zeros after decimal point #4

@martin-schulze-vireso

Description

@martin-schulze-vireso

The following testcase will fail:

constexpr auto number_val = JSON::number_parser()("0.0625"sv);
static_assert(number_val && number_val->first == 0.0625);

Parsed value is 0.625

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