-
Notifications
You must be signed in to change notification settings - Fork 475
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
Bigint support #181
Comments
Any news? |
No news. I'll try and have a look at this soon. |
Would you accept a PR which treats BigInt as a string in the constructor? Should be pretty simple to do around here:
|
Yes, but if the argument is a BigInt then there would be no need for the minus and plus sign checks, or for the |
This would be good to add to make our codebase a little bit more concise. I think @sterlu is on the right track, there wouldn't be too much effort required to add bigint support. |
With bigint now a part of JavaScript, it would be nice for Decimal.JS to support it within its constructor and operations.
As a workaround we can just convert bigint's to strings before using them in Decimal.JS, however this becomes very repetitive with lots of numbers.
The text was updated successfully, but these errors were encountered: