← All calculators / Math

Binary

Integer division truncates toward zero.

01 / Your inputsBrowser-only calculation
Binary
—
How it works

The formula

Convert integers, calculate, then convert back to the selected base

Example inputs

First number: 1010 · Second number: 11 · Operation: Add

Result: 1101 · Decimal: 13

What the Binary works out

This page computes binary. The Binary applies the formula Convert integers, calculate, then convert back to the selected base. Integer division truncates toward zero.

What each field means

First number
Entered as text rather than a single number — the example uses 1010. Keep the same separators shown there.
Second number
Entered as text rather than a single number — the example uses 11. Keep the same separators shown there.
Operation
Choose between Add, Subtract, Multiply, Divide. The worked example below uses Add, and switching it changes which rule set the calculator applies.

A worked example

With the values this page opens on — First number 1010, Second number 11, Operation Add — the answer is 1,101. The supporting detail reads: Decimal: 13. Reset restores exactly these numbers.

Reading the result

The result is labelled binary. It is recalculated on every keystroke from the unrounded values in the form, and the accompanying graph follows the same numbers.

Assumptions and limits

Integer division truncates toward zero. Remainder is separately shown.

Your privacy

Nothing you type leaves your browser.

Related calculators

Slope ↗ · Matrix ↗ · Factors ↗ · Z-score ↗