Skip to content

calling the toString() method and keeping full number without any exponent notation #3077

Answered by josdejong
rohanpatil20 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

n.args.map(arg => arg.toString(formatOptions)).join(', ')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rohanpatil20
Comment options

@josdejong
Comment options

Answer selected by rohanpatil20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants