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

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -