0

What is meant by "JavaScript numbers are always stored as double precision floating point numbers"?

Does this mean: var num = 12; creates the variable num and stores it's value as 12.00 as opposed to 12, which is the value I assigned it to? Can someone also explain why Javascript stores values as double precision floating point numbers?

2nd Mar 2018, 1:23 AM
Amanuel Tadesse
Amanuel Tadesse - avatar
1 Antwort
+ 3
why: Length of int data types is too short to stored and calculate Also try to find power of integer that raised by integer without using loop or recursion is pretty hard but When there is floating point pretty easy to find now
2nd Mar 2018, 3:17 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar