r/programminghelp • u/IrishPankake • Dec 02 '18
Non programmer here just asking, why is it that almost all games include item stacking up to 99 or 999 but never 1000
Always been curious about it, might have something to do with bits? Like I said non programmer.
4
Upvotes
0
Dec 02 '18
[deleted]
2
u/IrishPankake Dec 02 '18
Ok, going to be honest, didn't understand all of that but I think I get the idea, thanks!
1
u/NerdyDjinn Dec 02 '18
So the 99/999 question was answered, but as an addendum I would like to point out that then number 127 and 255 also have significance that IS related to bits.
Older games from the 8-bit era often times were limited by these numbers because 255 is the highest value an 8-bit unsigned integer can hold. Similarly, 127 and -128 are the largest and lowest values a signed integer can hold.
These days most data is stored in 32-bits, though 64-bit is starting to become more common.