Addition Example
First Number: 0.1; Second Number: 0.2; Operation: Addition (+)
Precise Result: 0.3; Result: 0.3; Difference: 0
This calculator demonstrates the behavior of floating-point numbers in calculations and highlights potential precision issues due to the way computers store and manipulate these numbers. It allows you to input two numbers and an operation, then displays the result and the difference between the calculated result and a more precise value.
Start with your values, or try a preset.
Enter First Number, Second Number, and Operation in the units shown.
Read Precise Result, Result, and Difference in the results panel. Results update as you change the inputs.
Choose a preset to load an example, then adjust the values for your situation.
See the inputs and their calculated results.
First Number: 0.1; Second Number: 0.2; Operation: Addition (+)
Precise Result: 0.3; Result: 0.3; Difference: 0
First Number: 1; Second Number: 0.9; Operation: Subtraction (-)
Precise Result: -0.1; Result: 0.1; Difference: 0.2
First Number: 0.5; Second Number: 0.5; Operation: Multiplication (*)
Precise Result: 0.02; Result: 0.25; Difference: 0.23
Use calculators for algebra, geometry, trigonometry, probability, statistics, averages, z-scores, tests, and graphing tasks.
Continue with another tool on a related topic.
Analyze the vertex of y = ax² + bx + c; this tool calculates vertex coordinates and does not graph or plot the function. If a = 0, the function is linear or constant and has no unique parabolic vertex. For this calculator, a nonzero coefficient with |a| < 0.000000000001 is outside the supported range; a = 0 is handled separately. Supported software input ranges are −10 to 10 for a and −1,000 to 1,000 for b and c. These are calculator limits, not general mathematical limits. All coefficients and coordinates are dimensionless.
Find the principal angle whose sine is the entered value, from -1 to 1. Results are shown in radians (from -π/2 to π/2) and degrees (from -90° to 90°). Enter any numeric value in the range; decimal precision is limited by binary floating-point arithmetic.
Calculates the average where some data points contribute more weight than others.
Divide a polynomial P(x) = a₃x³ + a₂x² + a₁x + a₀ by D(x) = b₁x + b₀. This calculator supports dividend polynomials up to degree 3 and divisors that are linear or constant; set leading coefficients to zero for lower-degree polynomials. It returns the four quotient coefficients and the constant remainder R such that P(x) = D(x)Q(x) + R. For a constant divisor, the quotient is the dividend divided by that constant and the remainder is zero. A zero divisor is undefined and produces an explanatory message. For this educational algebra model, x and every coefficient are dimensionless. Coefficients must be between −1,000 and 1,000. To keep intermediate results finite under these bounds, a linear divisor must have |b₁| ≥ 0.000000000001; a constant divisor must have |b₀| ≥ 0.000000000001. These are software limits, not limits on general polynomial division. Calculations use IEEE-754 binary64 floating-point, so coefficients and results are approximate. Rounding and cancellation can cause noticeable loss of accuracy, especially when nonzero |b₁| is very small relative to |b₀|; the computed quotient and remainder are not guaranteed to satisfy the algebraic identity exactly in floating-point arithmetic.