Can we store any number to a variable ?.... That means for example can we assign infinite numbers to variable( based on python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can we store any number to a variable ?.... That means for example can we assign infinite numbers to variable( based on python)

var=for example having infinite numbers is there any limit for storing values in variable (based on python

14th Apr 2019, 3:22 AM
V.K.n.ganesh
V.K.n.ganesh - avatar
3 Answers
+ 2
2^53 is an astronomical number, most programmers have least concerns about this, it should not be a factor to determine JavaScript is the right programming language you choose. And I never have chance use BigInt numbers, even though I have written JavaScript for quite a time now. In other words, the range of JavaScript numbers is more than sufficient for most of our applications.
14th Apr 2019, 4:08 AM
Calviղ
Calviղ - avatar
+ 1
For JavaScript, there is a a range. https://www.sololearn.com/post/42689/?ref=app
14th Apr 2019, 3:30 AM
Gordon
Gordon - avatar
+ 1
Use BigInt type to represent unsafe number, whole numbers larger than 10^53. It has some limitations, it does not work with Math function and cannot operate with number directly. More information please check https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
14th Apr 2019, 3:47 AM
Calviղ
Calviղ - avatar