Keep one operation visible
The basic calculator is intentionally smaller than the main scratchpad. It accepts two numbers and one selected operation. There are no parentheses, percent keys, chained expressions, running tape, or memory register. That narrow form makes the relationship between the operands and result easy to inspect.
Enter finite decimals using digits, an optional leading sign, and one decimal point. Choose Add, Subtract, Multiply, or Divide. The page converts both entries to reduced rational values, applies the operation, and shows the exact form together with the requested decimal display.
Read what the operation means
Addition combines the first and second values. Subtraction removes the second from the first, so operand order matters. Multiplication scales the first by the second. Division asks how many second-number units fit the first and requires a nonzero second value.
The Operation meaning field writes that relationship as a sentence. For 12.5 − 3.25, it says “Subtract 3.25 from 12.5.” For 12.5 ÷ 3.25, it says “Divide 12.5 by 3.25.” This catches a common form error without pretending to interpret the real-world story.
Swap operands is a deliberate edit. It does not silently recalculate, because swapping changes subtraction and division. The page marks the result as stale until Calculate pair is pressed again.
Worked example: divide and verify
Enter -12.5 as the first number, choose Divide, enter 4 as the second, and keep Exact when terminating. The rational values are -25/2 and 4/1. Dividing means multiplying the first by the reciprocal of the second:
(-25/2) ÷ (4/1) = (-25/2) × (1/4) = -25/8.
The decimal terminates at -3.125. Operation meaning states that -12.5 is divided by 4. The inverse check multiplies -3.125 × 4 and reconstructs -12.5 exactly in the rational engine.
If the user swaps operands, the proposed equation becomes 4 ÷ -12.5, which equals -8/25 or -0.32. The old result remains visibly stale until recalculated. That difference demonstrates why a two-field calculator should preserve order.
Use exact and displayed values differently
Exact rational result is the reduced numerator and denominator. When the denominator has only factors 2 and 5 after reduction, the decimal terminates. Otherwise, the decimal display is rounded to the selected 2, 4, 6, or 12 places using the site’s declared half-away-from-zero display rule.
For 1 ÷ 3, the exact result is 1/3. A 4-place display is 0.3333; it is not presented as equal to the exact value. The Copy equation action includes the exact fraction and labels the rounded decimal.
Decimal display is a presentation choice, not a measurement-accuracy claim. If an input came from a measurement, the appropriate significant figures depend on context beyond this tool.
Understand the inverse check
An inverse check applies a related operation to the computed result. For addition, subtract the second number from the result and compare with the first. For subtraction, add the second back. For multiplication, divide by a nonzero factor. For division, multiply by the divisor.
This check can expose a software or transcription error, but it does not validate the original scenario. It also has a boundary: multiplying by zero has no unique division inverse, so a zero-factor multiplication returns an explicit “inverse not unique” note rather than a false pass.
When to use another page
Use the addition calculator for a list of addends and subtotals. Use the subtraction calculator for a starting value followed by several ordered removals. Use the expression calculator when precedence or parentheses matter. Use the decimal calculator when place alignment is the point of the task.
The main online calculator is better for a mixed line that needs tape or memory. This pair tool never adds a line to that tape and does not share state across routes.
Limits and responsibility
The form does not accept fractions written with /, scientific notation, currency signs, units, thousands separators, variables, infinity, or NaN. Division by zero returns a domain error. Length and rational-size limits protect the browser.
The calculator performs arithmetic only. It cannot decide which operation fits a contract, medication, tax, grade, measurement, price, or engineering model. Review units and assumptions independently.
Basic-operation questions
Does Swap automatically update the answer?
No. It marks the prior result stale and waits for Calculate pair.
Why show a fraction for decimal inputs?
Finite entered decimals have exact rational representations, which preserve the arithmetic before display rounding.
Is the inverse check proof that my real-world answer is correct?
No. It checks the arithmetic relationship only.
Are my two numbers saved?
No. They remain in current page memory and clear on refresh.
Enter both operands, choose the single operation, and select Calculate the selected number pair. Read the equation, exact value, displayed decimal, and inverse check before copying the line or moving to a multi-step tool.
