Computer Science Illuminated
Computer Science Illuminated
7th Edition
ISBN: 9781284155617
Author: Nell Dale, John Lewis
Publisher: Jones & Bartlett Learning
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 18, Problem 33E

Explanation of Solution

Underflow error:

Underflow error is an error which occurs when the precision digits produced by the arithmetic calculation is too small  than the allocated digits to represent in the machine.

Example: consider the following equation:

(A+B)        (1)

Substitute the value of A = 5688×10-7  and B = 5689×10-7 in Equation (1).

Compute the sum of the first two values (A+B),

    5688 × 10-7  5689 × 10-7_11377 × 10-14

Here, the value 11377×10-14 can be written as 1137×10-13.

  • The result of (A+B) is 1137×10-13, which is too small to represent in the machine because the minimum exponent value that can be represented is -9 and the value lesser than the exponent -9 is considered as 0.
  • So, logically the result of A + B is set to 0. This type of error is called underflow error

Blurred answer