I am experimenting with a JavaScript library for working with big integers called BigInteger.js.
Specifically, I am trying to print a big integer. However, I am getting puzzling results. For instance, when I try this:
var x= bigInt("53542885039854749852");
document.write(x+"<br>");
...I am getting 53542885039854750000. And when I try this:
var x= bigInt("104156103156113102156118165104101120101");
document.write(x+"<br>");
...the result is 1.041561031561131e+38.
Can someone help me understand why I am not getting the results I expect?