I l @ ve RuBoard |
There are limits to the size of the number a computer can handle. What is the result of the following calculation?
Multiplying it out, we get:
However, we are limited to a single-digit exponent, too small to hold 19. This is an example of overflow (sometimes called exponent overflow). Some computers generate a trap when this occurs, thus interrupting the program and causing an error message to be printed. Others are not so nice and generate a wrong answer (like 8.100E+9). Computers that follow the IEEE floating-point standard generate a special value called +Infinity . Underflow occurs when the numbers become too small for the computer to handle. Example:
The result is:
Because -18 is too small to fit into one digit, we have underflow. Again, like overflow, the results of underflow are system-dependent. |
I l @ ve RuBoard |