modified | title |
---|---|
2025-01-15 23:17:09 UTC |
Common conversion methods between number bases include: |
Sum the products of each binary digit and its corresponding power of 2.
- Example:
1010
in binary is1*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 10
in decimal.
Divide the decimal number by 2 and record the remainders.
- Example:
10
in decimal is1010
in binary.
Sum the products of each hexadecimal digit and its corresponding power of 16.
- Example:
1F
in hexadecimal is1*16^1 + F*16^0 = 1*16 + 15 = 31
in decimal.
Divide the decimal number by 16 and record the remainders.
- Example:
31
in decimal is1F
in hexadecimal.
Group the binary digits into sets of four (starting from the right) and convert each group to its hexadecimal equivalent.
- Example:
10101100
in binary isAC
in hexadecimal.
Convert each hexadecimal digit to its 4-bit binary equivalent.
- Example:
AC
in hexadecimal is10101100
in binary.
Sum the products of each octal digit and its corresponding power of 8.
- Example:
157
in octal is1*8^2 + 5*8^1 + 7*8^0 = 111
in decimal.
Divide the decimal number by 8 and record the remainders.
- Example:
111
in decimal is157
in octal.
Group the binary digits into sets of three (starting from the right) and convert each group to its octal equivalent.
- Example:
10101100
in binary is254
in octal.
Convert each octal digit to its 3-bit binary equivalent.
- Example:
254
in octal is10101100
in binary.