javascript - Stop Sublime/Node.js shortening numbers -


when work big numbers sublime text 2 or node.js (i don't know 1 does) shortens big numers. example:

var example = math.pow(2, 70);

example = 1.1805916207174113e+21

i see full number (1180591620717411303424), don't know settings have change nor know find settings.

it's nodejs that's "shortenting" these numbers. display large numbers in scientific notation, because javascript uses 64-bit floating point numbers.

if you're referring displaying numbers not in scientific notation, i.e. 'x.xxxxxxxxxxe+yy', refer answer:

how avoid scientific notation large numbers in javascript?

if you're looking handle numbers larger 64-bit floats...

javascript can't handle 64-bit integers, can it?

and note mention of library "bignumber".


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -