Basic calculator

Add, subtract, multiply or divide two numbers.

Enter two numbers and choose the operation. Negative and decimal numbers are accepted. Division by zero is rejected. No expressions with parentheses or operator precedence. Example: 12.5 × 3 = 37.5.

Both dots and commas are accepted as decimal separators.

Your inputs stay in your browser.

Method and assumptions

Method version 1.0.0 · Updated

Simple operation

Formula: a + b ; a − b ; a × b ; a ÷ b

Enter two numbers and choose the operation. Negative and decimal numbers are accepted. Division by zero is rejected. No expressions with parentheses or operator precedence. Example: 12.5 × 3 = 37.5.

left
First number
operation
Operation
right
Second number

Two finite numbers, one operation at a time. Numeric result displayed with at most 12 significant digits. Overflow and nonzero underflow are reported.