Best Answer mountbara , 14 August 2018 - 12:14 AM
Bad programming then, they could cap it at that and allow no more notes to be added. But, a definitive answer, thank you Capt
Go to the full postThat number is 2^31-1. It actually has an interesting history, it was discovered to be a prime by Euler, and for quite a long time was the largest prime number known.
Here's the technical details about what is actually happening. I may get some of the exact details wrong, but the gist is: If you make a signed integer too big, it rolls over to zero.
A computer using 32-bit integers, 2^31-1 is represented as 01111111111111111111111111111111.
If you add one to that, you end up with 2^31, or 10000000000000000000000000000000.
The problem is, how is that number interpreted? My guess is that notes are stored in a 32 bit signed integer. That means the first digit is actually a sign bit. It tells if the integer is negative or positive. So, 2^31-1 is a positive 2.1B notes, but 2^31 is a treated as a negative zero. Positive or negative though, zero is zero... so you just lost your 2 years of saving notes.
Don't do it. Buy skills before then.
(This is also the result in Hero Zero.)