Large numbers to string in JavaScript -
when following:
alert((2053716830872415770228778006271971120334843128349550587141047275840274143041).tostring());
i "2.053716830872415e+75" exponential notation. want alert number is. tried tofixed(), toprecision() , tolocalestring() , output same thing.
how can accomplish this? note: number variable, cannot alert("208..");
javascript uses 64-bit floating point numbers.
impossible precisely store value in javascript number.
instead, should use biginteger library.
Comments
Post a Comment