Skip to content

matrix with bignumbers .ToString() #3331

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

You must be logged in to vote

You can use the function format intsead of toString:

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nycos62
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