Skip to content

Inaccuracies with large numbers (e.g. 1e36) #3

Description

@beaugunderson

Using anything larger than 1e15 as a literal in JavaScript can result in inaccuracies... Currently 1e36 is used as a literal in this codebase, you can see it's not exactly what you expect:

> BigInt(1e36)
1000000000000000042420637374017961984n
> 10n ** 36n
1000000000000000000000000000000000000n

Metadata

Metadata

Assignees

No 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