-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug] math.format precision 0 #1337
Labels
Comments
I ran into the issue, but thanks to @dkenul for spotting the likely culprit! |
Looks like a bug to me 👍 nice catch, thanks |
Thanks for the confirmation @harrysarson . Created a PR. |
josdejong
pushed a commit
that referenced
this issue
Nov 29, 2018
This issue should be fixed now in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit to @jmm for this find.
Example:
Live Example
Source:
A falsey check here:
mathjs/src/utils/number.js
Line 147 in c1cceec
Solution:
typeof precision === 'number'
as seen elsewhere in the file.I can submit a pull request for this if verified as a bug.
The text was updated successfully, but these errors were encountered: