Underflow Numbers

by Steve O'Hara

In Mathematics, if you have a numbers X and Y, then X+Y-X is always Y.

In Computers, this is not always the case. Here is an example. See if you can find the problems. The answer is hidden below.


Javascript
PHP
XX+1000-X
10000000001000
1.0E+181024
1.0E+270
Python
Java



Last Updated on 9/28/2016
Email: steve@oharasteve.com