Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use BigInt to compare Decimal Integer String instead of Number #33

Open
TaYaKi71751 opened this issue Feb 2, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@TaYaKi71751
Copy link
Collaborator

No description provided.

@TaYaKi71751 TaYaKi71751 added the enhancement New feature or request label Feb 2, 2023
@TaYaKi71751
Copy link
Collaborator Author

TaYaKi71751 commented Feb 2, 2023

`${BigInt(18446744073709551615)}`
"18446744073709551616"

`${BigInt(18446744073709551615)}` == 18446744073709551615
true

`${BigInt(18446744073709551615)}` == 18446744073709551616
true

`${BigInt(18446744073709551615)}` == '18446744073709551616'
true

source

@TaYaKi71751
Copy link
Collaborator Author

TaYaKi71751 commented Feb 2, 2023

`${BigInt(18446744073709551615)}` == '18446744073709551615'
false

`${BigInt(18446744073709551615)}` == 18446744073709551615
true

`${BigInt(18446744073709551615)}` == '18446744073709552000'
false

source

@TaYaKi71751 TaYaKi71751 changed the title Use BigInt to compare Decimal String instead of Number Use BigInt to compare Decimal Integer String instead of Number Feb 2, 2023
@TaYaKi71751 TaYaKi71751 changed the title Use BigInt to compare Decimal Integer String instead of Number Use BigInt to compare Decimal Integer String instead of Number Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant