Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
So I noticed that if a number is too big it becomes infinity but there's also a certain size where all of the digits past a certain point become 0. So what's the largest value a global variable (or any variable) can hold accurately?
614889782588491390 It seems like this might be the highest? If I increase the value, even by 1 it gets rounded back down to 614889782588491390
numbers are 64bit floating point values. You probably can get all the info you want by googling that.
Number.MAX_VALUE => 1.7976931348623157e+308
Number.MIN_VALUE => 5e-324 (smallest value close to 0)
Number.MAX_SAFE_INTEGER => 9007199254740991
Number.MIN_SAFE_INTEGER => -9007199254740991
Magistross, there are a few outside libraries for this, or you can use bit manipulation to simulate them
Aren't bit manipulation limited to 32 bits integers ?
Develop games in your browser. Powerful, performant & highly capable.
Magistross - true