Find the binary equivalent for the following decimal numbers. Find the round off error, if there is any: a. (5.75)10 = b. (2.625)10 =
Find the binary equivalent for the following decimal numbers. Find the round off error, if there is any:
a. (5.75)10 =
b. (2.625)10 =
Converting the integer part (5) to binary
To convert an integer to binary, we repeatedly divide the number by 2 and keep track of the remainders.
Reading the remainders from bottom to top, the binary representation of 5 is .
Converting the fractional part (0.75) to binary
To convert a fraction to binary, we multiply the fraction by 2 and keep track of the integer parts.
Reading the integer parts from top to bottom, the binary representation of 0.75 is .
Combining the results from Steps 1 and 2
Combining the results,
There's no round-off error in this case because 5.75 can be exactly represented in binary.
Step by step
Solved in 3 steps with 6 images