|
Hello, generating code : output 1.24387809e+8 instead of 124387809 thank you |
Answered by
josdejong
Dec 4, 2024
Replies: 1 comment
|
You can use the function const result = math.kron(
math.range(math.bignumber("11111"), math.bignumber("11211")),
math.range(math.bignumber("11111"), math.bignumber("11211"))
)
console.log(math.format(result, { upperExp: Infinity }))
// [[123454321, 123465432, 123476543, 123487654, 123498765, ... Docs: https://mathjs.org/docs/reference/functions/format.html |
0 replies
Answer selected by
nycos62
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the function
formatintsead oftoString:Docs: https://mathjs.org/docs/reference/functions/format.html