Skip to content

Fix Number(...) rounding errors #81

Description

@ryanggrey

We use the Number(...) constructor in a few places. Wrapping a string in the number constructor is going to cause rounding errors for values above Number.MAX_SAFE_INTEGER:
Number("9007199254740991.45") will result in 9007199254740991.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions