calling the toString() method and keeping full number without any exponent notation #3077
Answered
by
josdejong
rohanpatil20
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
josdejong
Oct 18, 2023
Replies: 1 comment 2 replies
-
Using the format option You can effectively disable exponent notation by specifying const formatOptions = {
"implicit":"show",
"lowerExp": -Infinity,
"upperExp": Infinity,
"handler": implicitMultiplicationFormatter
} Docs describing the formatting options: https://mathjs.org/docs/reference/functions/format.html |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your code example,
n.args
is a JavaScript Array, and the.toString()
of an Array doesn't know about these options. I think you have to change it to something like: