Concepts · 3 min read
Why 0.1 + 0.2 Is Not Exactly 0.3 in Computers

Binary cannot write 0.1 exactly
Just as 1/3 becomes 0.333… in decimal, 1/10 becomes an endless repeating pattern in binary. A computer stores only a fixed number of binary digits, so it keeps the nearest value it can — slightly above or below the true 0.1.
Add two such approximations and the tiny errors can surface in the last digits. That is the famous 0.30000000000000004.
What this calculator does about it
CalcSolver Pro evaluates with standard double-precision numbers, then cleans the result to 12 significant digits. That hides the 17th-digit noise while keeping far more precision than any classroom problem needs.
Displayed after cleaning to 12 significant digits
Order-of-operations steps 1 step
Start: 0.1 + 0.2
- Add
0.1 + 0.2 = 0.3→ 0.3
When exactness matters
Fraction tools avoid the problem entirely: they use whole-number numerators and denominators and only produce a decimal at the very end. Money software typically stores whole cents for the same reason.
Frequently asked questions
Is this a bug?
No. It is a property of the standard binary floating-point format used by virtually all computers and languages.
Can I get exact decimals?
Use fractions or integer cents for exact work; use floating point and sensible rounding for everything else.
Keep reading
Order of Operations: Why PEMDAS Trips People Up
PEMDAS, BODMAS and the viral “8 ÷ 2(2+2)” puzzle explained: what the rules actually say, where they are ambiguous, and how to write unambiguous math.
ConceptsThe Prisoner's Dilemma: Game Theory Basics With a Payoff Table
A clear introduction to game theory using the prisoner's dilemma: payoff table, best responses, Nash equilibrium and why cooperation is hard.
Charts & referencesFraction to Decimal Chart: 25 Common Fractions
A printable fraction to decimal and percent chart for halves to twentieths, with the rule for spotting repeating decimals and how to convert any fraction.
How-to guidesHow to Convert a Fraction to a Percent (With Examples)
Convert any fraction to a percent in two steps: divide, then multiply by 100. Worked examples for 3/8, 7/20 and 5/6, plus mixed numbers.