Multiply two binary numbers using the same partial‑product method as decimal. Perfect for computer arithmetic and digital logic design.
Binary Multiplication Rules: 0 × 0 = 0, 0 × 1 = 0, 1 × 0 = 0, 1 × 1 = 1. Partial products are shifted and added (just like decimal).
Binary multiplication is simpler than decimal because you only multiply by 0 or 1. It follows the same partial product method used in elementary school, but in base‑2.
Let’s multiply 1010₂ (10) by 1101₂ (13). We multiply each digit of the multiplier by the multiplicand, shift left accordingly, and then add all partial products.
1 0 1 0 (10)
× 1 1 0 1 (13)
---------
1 0 1 0 (1010 × 1, shift 0) → 1010
0 0 0 0 (1010 × 0, shift 1) → 00000 (shown as 00000)
1 0 1 0 (1010 × 1, shift 2) → 101000
1 0 1 0 (1010 × 1, shift 3) →1010000
------------------- (binary addition)
1 0 0 0 0 0 1 0 (130)
Each partial product is shifted left (appended zeros) according to the multiplier bit position. Then all partial products are added using binary addition, which may generate carries.
Compute 111₂ (7) × 101₂ (5):
1 1 1 (7)
× 1 0 1 (5)
---------
1 1 1 (111 × 1, shift 0) → 111
0 0 0 (111 × 0, shift 1) → 0000 (written as 0000 for alignment)
1 1 1 (111 × 1, shift 2) → 11100
----------------- addition
1 0 0 0 1 1 (35) ← verification: 7×5=35
Detailed addition: from rightmost column to leftmost: 1+0+0=1; next: 1+0+0=1; next: 1+0+1=0 carry 1; then carry 1+0+1=0 carry 1; finally carry 1+0+0=1 → 100011₂ = 35.
In digital circuits, multiplication is often performed by a shift‑and‑add algorithm. A simple multiplier examines each bit of the multiplier; if the bit is 1, the shifted multiplicand is added to an accumulator. This process is the foundation of arithmetic logic units (ALUs) in CPUs.
Calculator Features: