Why does 0.375 convert to binary in three clean steps while 0.1 explodes into ~50 bits that never settle?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
The binary fraction 0.101 means 1/2 + 0/4 + 1/8 — each digit after the point switches
on a negative power of two. Its three digits are given below, left to right. Compute the
decimal value of 0.101 and assign it to value.
(Hint: the place values after the point are 1/2, 1/4, 1/8, and / does ordinary
division.)