Task 2 • Why do computers get 0.1 + 0.2 wrong?

Students investigate how fractions are represented in binary, and discover that some fractions with terminating decimal representations in base 10 have recurring representations in binary. They build a conjecture for when a simplified fraction has a terminating representation in binary.

AUS • Year 8 NSW • Stage 4 WA • Year 8 VIC • Level 8

Number: Recurring decimals, or just the wrong base?

View Sequence overview

Binary numbers can have a fractional part, just like base 10 decimals do.

A simplified fraction has a terminating decimal representation in binary when its denominator is a power of two.

Task