We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, using Big(null) will cause Error: [big.js] Invalid number while it is common that I can't make sure if the input is not nullish value.
Big(null)
Error: [big.js] Invalid number
I suggest that Big(null) returns value zero and it logs warning in dev mode.
ref: https://github.com/MikeMcl/big.js/blob/master/big.mjs#L138
The text was updated successfully, but these errors were encountered:
IMO not a good idea. BigInt, which is newer than Number, throws error: tc39/proposal-bigint#15
BigInt
Number
Sorry, something went wrong.
No branches or pull requests
For example, using
Big(null)
will causeError: [big.js] Invalid number
while it is common that I can't make sure if the input is not nullish value.I suggest that
Big(null)
returns value zero and it logs warning in dev mode.ref: https://github.com/MikeMcl/big.js/blob/master/big.mjs#L138
The text was updated successfully, but these errors were encountered: