For each of the above rounded binary numbers, indicate what type of rounding you performed and compute the value that is either added to or subtracted from the original number (listed above) as a result of the rounding process. In other words, compute the error introduced by the rounding process.
Below is a table listing several real numbers represented as 6-bit floating-point numbers (w = 6). The format of these 6-bit floating-point numbers is as follows: 1 bit is used to express for the sign, 3 bits are used to express “exp” (k = 3) and 2 bits are used to represent “frac” (n = 2), in the following order: sign exp frac.
Complete the table (the same way as in Figure 2.35 in our textbook) then answer the questions below the table.
Tip: Have a look at Figure 2.35 in our textbook, which illustrates a similar table for a hypothetical 8-bit floating-point format. This will give you an idea of how to complete the table. Also, Figure 2.34 displays the complete range of these 6-bit floating point numbers as well as their values between -1.0 and 1.0. This diagram may be helpful when you are checking your work.
Expressed these differences (“delta”) as decimal numbers.
Reviews
There are no reviews yet.