Skip to content
Artwork for Computer Learning Zone
Computer Learning Zone · Sunday · 14 min

Why Computers Get Decimal Math Wrong: Floating Point Explained

Why can 0.1 plus 0.2 sometimes produce 0.30000000000000004? Computers are not forgetting basic arithmetic. They are working with finite binary approximations of decimal values that cannot always be represented exactly.

0:00-14:52

transcript

No transcript — this publisher did not publish one.

show notes

Why can 0.1 plus 0.2 sometimes produce 0.30000000000000004? Computers are not forgetting basic arithmetic. They are working with finite binary approximations of decimal values that cannot always be represented exactly.