Architect Archive
Thread: max # of credits allowed
no clue dont think theres a limit a friend put 47k by accident into a factory so its at least over 47k)
but ill bump you to the top so someone can help you
-biana
wanderhome
No, there has to be a maximum, but if it is over 2 million, then the closest it is likely to be is 4,294,967,295.
Let's pool our money and find out! ;-)
It's not specific to a programming language, it's specific to the size of the data container holding the variable. Integers, longs, doubles, etc - really say "Here's a number, but here's XYZ bits used to define the number." With 8 bits (one byte), your highest number possible is what -- 32k?
So, all said, it depends on what type of numeric data structure the devs used to define the maint cost field in the database.
BetaZoob wrote:
With 8 bits (one byte), your highest number possible is what -- 32k?
Uh... 8 bits = 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 = 256
You probably mean 15 bits, which is: 32,758, or 16 bits:65,536.
My guess is their database has 32bit integers which maxes you at 4,294,967,296 -1 (for the "0") = 4,294,967,295 credits.
Goff McMerrii
Miner
You're right - 16 bits is the 32k, and 8bit is:
1 2 4 8 16 32 64 128, and that said, yeah - it's only 256 (11111111).