I want something like the library JavaScript BigNum and Numeral.js working together.
In Numeral.js, I can use strings like this:
var number = numeral('1110000000000000000000000000000000000000000000000000011100000000000000000011111111100');
but the result of number.format();
is really disappointing:
"1.11e+84"
Any way to format a (really) big number nicely?
EDIT: I don't want just avoid scientific notation, it was a wrong assumption. I want to "nicely" format, as I want, for example:
var number = numeral(1000);
numeral.defaultFormat('$0,0.00');
number.format();
// '$1,000.00'
Well, if the number is big:
var number = numeral('100000000000000000000000000');
"$9.999999999999999e+25"
This is a mess. I know JavaScript can't handle big numbers, but my question is exactly because that! I would like a library or a possible solution to this problem.