Tomcat
Professional
- Messages
- 2,689
- Reaction score
- 961
- Points
- 113
Recently, some Visa cardholders received inflated bills for paying for ordinary services. On card transaction printouts, people saw an astronomical amount of $23,148,855,308,184,500.00 ($23.1 quadrillion) plus a $15 card overdraft penalty. This amount is many times greater than global GDP. The banks and Visa, after a brief investigation, reported that the error was caused by a technical glitch, but did not disclose any details.
But in fact, the amount of the erroneously written off payment itself reveals the nature of the error. Look at this number
$23.148.855.308.184.500.00
Most likely, it is stored on the card as
2314885530818450000
If we convert it to hexadecimal, we will get
20 20 20 20 20 20 12 50
Most C/C++ programmers have already understood what the error is , because hex 20 is a space. That is, as a result, most likely, a programming error resulted in spaces instead of zeros in the data cell.
But in fact, the amount of the erroneously written off payment itself reveals the nature of the error. Look at this number
$23.148.855.308.184.500.00
Most likely, it is stored on the card as
2314885530818450000
If we convert it to hexadecimal, we will get
20 20 20 20 20 20 12 50
Most C/C++ programmers have already understood what the error is , because hex 20 is a space. That is, as a result, most likely, a programming error resulted in spaces instead of zeros in the data cell.