Skip to content

Incorrect parsing of JSON numbers in v0.4 (Regression) #113

Description

@kasper9n

In a JSON file, I have numbers that add up to exactly 50:

"splits": [
  { "share": 16.7 },
  { "share": 16.7 },
  { "share": 16.7 },
],
// ...

Thankfully, when parsing them I verify that they add up.

In v0.3 these numbers were correctly parsed as 16.7, but in v0.4.1 they parse to 16.699999999999999289457264239899814128875732421875.

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