0

How many digit of a number does JS accepts?

(maximum) how many digits can i write in order to form a number. e.g 1234567890 is 10 digit. does JS accepts it?

31st Dec 2016, 11:09 AM
sankalp ranade
sankalp ranade - avatar
3 Antworten
+ 2
You should not ask for the length of the value. you should ask what the maximum value is, then you can get its length ;)
31st Dec 2016, 11:10 AM
Andreas K
Andreas K - avatar
0
MAX_VALUE attribute can tell.
2nd Mar 2017, 9:50 AM
M. Farhan Sadique Fareshi