Number Systems-3
Number Systems-3
Daniel Bonilla
February 3, 2025
Decimal System
1 × 23 + 0 × 22 + 1 × 21 + 1 × 20 = 8 + 0 + 2 + 1 = 11
Decimal to Binary Conversion (Division by 2 Method)
Example
Convert 25 to binary:
▶ 25 divided by 2 gives quotient 12, remainder 1.
▶ 12 divided by 2 gives quotient 6, remainder 0.
▶ 6 divided by 2 gives quotient 3, remainder 0.
▶ 3 divided by 2 gives quotient 1, remainder 1.
▶ 1 divided by 2 gives quotient 0, remainder 1.
Reading the remainders from bottom to top: 25 in decimal is
11001 in binary.
Example
Convert 7 to binary:
▶ 7 divided by 2 gives quotient 3, remainder 1.
▶ 3 divided by 2 gives quotient 1, remainder 1.
▶ 1 divided by 2 gives quotient 0, remainder 1.
Reading the remainders from bottom to top: 7 in decimal is 111 in
binary.
Hexadecimal System