You are viewing a single comment's thread. Return to all comments →
Use BigNumber!
var BigNumber = require('bignumber.js');
You need to set it to change where it switches to displaying exponents instead of whole numbers.
BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
Also, make it not limit the precision when using powers.
BigNumber.config({ POW_PRECISION: 0 })
And then it works! :-D
Here's where you can find out how to use it: http://mikemcl.github.io/bignumber.js/
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Modified
You are viewing a single comment's thread. Return to all comments →
Use BigNumber!
You need to set it to change where it switches to displaying exponents instead of whole numbers.
Also, make it not limit the precision when using powers.
And then it works! :-D
Here's where you can find out how to use it: http://mikemcl.github.io/bignumber.js/