Question: 2. Let fl(x) denote the machine floating-point version of a number x. Consider a computer using a binary floating point representation with 4 bits

2. Let fl(x) denote the machine floating-point version of a number x. Consider a computer using a binary floating point representation with 4 bits of precision in the significand. Assume that rounding is is used in going from a number x, which is outside the computer, to its floating point approximation, which is stored in the computer. (Rounding a significand that has more than 4 binary digits is done by chopping to 4 digits if its fifth digit is zero. Otherwise, if the fifth digit is 1, chop to 4 digits and then add 1 to the fourth digit.) Let x = 17/16. Find the binary expansion of x, and then determine fl(x) (the representation of x inside our computer). Show that x- X fl(x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
