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
negative BigNumber values always return in exponential notation ignoring formatOptions. I expect 1-2 = -1, but it returns 1-2 = -1e+0
1-2 = -1
1-2 = -1e+0
let bigmath = math.create({ number: "BigNumber" }) const formatOptions = { notation: "auto", // 'auto', 'fixed', 'exponential' and "engineering" fraction: "decimal", //'ratio', 'decimal', precision: 99, lowerExp: -99, upperExp: 99 } let answer=bigmath.eval("1-2") bigmath.format(answer, formatOptions)
You can try it here on codesanbox.
The text was updated successfully, but these errors were encountered:
0721626
Thanks for reporting @husayt! Fixed via 0721626 (will do a release within a few days)
Sorry, something went wrong.
This should be fixed now in v5.4.1.
v5.4.1
No branches or pull requests
negative BigNumber values always return in exponential notation ignoring formatOptions. I expect
1-2 = -1
, but it returns1-2 = -1e+0
You can try it here on codesanbox.
The text was updated successfully, but these errors were encountered: