My money counter shows a negative sign in front of it
At first, it didn't affect collecting money, but NOW, it actually SUBTRACTS money (or adds money to the negative). What the heck is going on, and is this happening to anyone else?!?!?!
0
Howdy, Stranger!
Replies
I guess there goes my dreams of $10 billion...
32 bit signed integer uses 31 bits to represent up to 2,147,483,647 and one bit for negative / positive. The programmers could have avoided this but I guess they never thought anyone would ever get that high.
2,147,483,647 + 1 = -2,147,483,648
2,147,483,647 + 2 = -2,147,483,647
2,147,483,647 + 3 = -2,147,483,646
32 bits can represent up to 4,294,967,296 numbers: -2,147,483,648 to 2,147,483,647 (or 0 to 4,294,967,295 for unsigned integer)
Also you will see the correct amount in the bank when you purchase game cash items, your running total is displayed top right
Edit, fixed typo