Skip to content

Leading plus sign should be allowed when parsing #206

Description

With native BigInt, BigInt('+10') parses correctly as 10. Unfortunately, using this library, bigInt('+abc', 16) does not correctly parse as 0xabc, even though bigInt('-abc', 16) parses correctly as -0xabc.

This leads to inconsistencies in parsing when the base is equal to 10 compared to other bases. Not sure if I'll have time to submit a PR, but will probably do so if no one gets to this in the next few days.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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