Understanding binary numbers
Every computer in the world counts in twos. Not because engineers love the number two, but because a wire is either on or off, a switch is either open or closed — and two states are all you need if you are willing to string enough of them together. Binary is the number system built from that fact: just the digits 0 and 1, with each position worth twice the one to its right.
Formula and method
Reading a binary number. Each position is a power of 2, counting from the right starting at 2^0 = 1: Addition. Add column by column from the right, exactly as in decimal — except a column carries when it reaches 2: 1 + 1 = 10 (write 0, carry 1). Three ones in a column (1 + 1 + a carried 1) give 11: write 1, carry 1. Subtraction. Subtract column by column from the right. When the top digit is smaller than the bottom digit, borrow 2 from the next column to the left (not 10, as in decimal). Multiplication. Multiply as in decimal: each 1 in the second number contributes a shifted copy of the first number, and the copies are added. Because the digits are only 0 and 1, there are no multiplication tables to remember — a digit either contributes its shifted row or it does not. Decimal to binary. Divide by 2 repeatedly and record the remainders; read them from bottom to top. For 46: 46 ÷ 2 = 23 remainder 0; 23 ÷ 2 = 11 remainder 1; 11 ÷ 2 = 5 remainder 1; 5 ÷ 2 = 2 remainder 1; 2 ÷ 2 = 1 remainder 0; 1 ÷ 2 = 0 remainder 1 — reading the remainders upwards gives 101110. The calculator's method is: convert each input to an integer, perform the operation, then return the result to binary. The decimal check beside every answer is the same conversion, so a wrong binary result would show up immediately as a wrong decimal.
Worked example
Example 1 — Addition: 1101 + 1001 Add 13 and 9 in binary. Convert: 1101 = 8 + 4 + 0 + 1 = 13; 1001 = 8 + 0 + 0 + 1 = 9 Add column by column from the right: 1+1 = 10 (write 0, carry 1); 0+0+1 carried = 1; 1+0 = 1; 1+1 = 10 (write 0, carry 1); final carry 1. Result: 10110 — check: 16 + 0 + 4 + 2 + 0 = 22, and 13 + 9 = 22. ✓ The carry ripples left through every column here, which is why adding two 4-bit numbers can produce a 5-bit answer.