ToolNest

Decimal Calculator

Exact decimal arithmeticRuns locally · nothing uploaded

  • Exact result0.3
  • Rounded0.3
  • Floating-point result (for comparison)0.30000000000000004

Most software uses binary floating point, so 0.1 + 0.2 gives 0.30000000000000004. This calculator works digit by digit in base 10 (division to 30 places), which suits money and measurements.

Also works as:high precision calculatordecimal arithmeticrounding calculator

How to use

  1. 1Enter two decimals.
  2. 2Choose +, −, × or ÷.
  3. 3Choose decimal places and read the exact result.

FAQ

Why does 0.1 + 0.2 ≠ 0.3 in some calculators?

Computers store decimals in binary, where 0.1 cannot be represented exactly. This tool uses exact base-10 integer math.

What about non-terminating division?

Division is carried to 30 decimal places, then rounded to the places you choose.