Like denary, hexadecimal is a positional system. The value of a digit depends on its position relative to the radix point, with each place value being a power of .
The weights for hexadecimal positions starting from the right are , , , , and so on.
Mathematically, a hexadecimal number can be expressed in denary as: where is the denary value of the hex digit.
Successive Division by 16: Divide the denary number by and record the remainder. Repeat the process with the quotient until the quotient reaches zero.
Remainder Mapping: If a remainder is between and , it must be converted to its corresponding letter ().
Ordering: The first remainder calculated represents the Least Significant Digit (LSD), and the final remainder represents the Most Significant Digit (MSD). Read the remainders from bottom to top.
Expansion Method: Multiply each hexadecimal digit by its corresponding power of based on its position.
Step-by-Step Calculation: Convert any letter digits () back to their denary equivalents () before performing the multiplication.
Summation: Add the results of all multiplications together to find the final denary value.
| Feature | Denary (Base-10) | Hexadecimal (Base-16) |
|---|---|---|
| Digits Used | and | |
| Place Value | Powers of () | Powers of () |
| Use Case | General counting and math | Memory addresses, color codes, machine code |
| Efficiency | Lower density for binary | High density (1 digit = 4 bits) |
The Binary Bridge: For complex conversions, it is often faster to convert to binary first. Since , you can convert each hex digit into a 4-bit binary group and then convert the binary string to denary.
Verification: Always perform a 'sanity check'. If you convert a large denary number to hex, the resulting hex string should have fewer digits than the denary version because the base is larger.
Common Values: Memorize the first few powers of () and the mappings to save time during exams.
The 'Off-by-One' Error in A-F: A common mistake is starting the alphabet at instead of . Remember that is the last number, so must be .
Reversing the Order: Students often write the remainders in the order they were calculated (top-to-bottom). Always write them from the last remainder to the first (bottom-to-top).
Ignoring the Zero Power: Forgetting that the first column on the right is (which equals ) rather than leads to significant calculation errors.