Convert Decimal 42 to Hex
(42)10 = (?)16. Decimal 42 in hex conversion provides the detailed information on what is the hexadecimal equivalent of (42)10 and the step-by-step work for how to convert the decimal 42 to its equivalent hex (base-16) number manually.
(42)10 in hex is equivalent to:
4210 = 2A16
Hence,
(2A)16 is the hex equivalent of (42)10
where,
4210 is the given decimal number,
10 in 4210 represents the base-10 or decimal number system,
2A16 is the hex equivalent of the decimal 42,
16 in 2A16 represents the base-16 or hexadecimal number system.
Important Notes: (42)10 in Hex
The below are some of the important notes to be remembered while converting the (base-10) decimal number 42 into a (base-16) hexadecimal equivalent.
- The initial or first remainder while performing 42 MOD-16 operation is a Least Significant Bit (LSB).
- The last remainder while performing 42 MOD-16 operation is a Most Significant Bit (MSB).
- Find the equivalent hex number for each remainders of 42 MOD-16 operation before arranging the numbers from MSB to LSB to find the hex equivalent.
- The remainders of 42 MOD-16 operation in hex equivalents should be written from MSB to LSB to form the hex equivalent for the given decimal number (42)10.
How-to: What is (42)10 in hex?
The below step-by-step solution shows how to convert (42)10 to its equivalent hexadecimal number. Represent each remainders of 42 MOD-16 operation in hex equivalents and arranging them from MSB to LSB produces the hex equivalent of 42.
Solved Example:
What is the hex equivalent of 42?
step 1 Observe the input parameters, values and what to be found:
Input values:
Decimal Number = (42)10
What to be found:
What is the hexadecimal value of decimal number 42?
(42)10 = (?)16
step 2 Perform successive MOD-16 operation for decimal 42 until the quotient becomes 0, and mark the initial remainder as LSB and the final remainder as MSB as like the below:
Successive MOD-16 Operation for 42
42 MOD-16 | 42 / 16 = 2 | Remainder is 10 → LSB |
2 MOD-16 | 2 / 16 = 0 | Remainder is 2 → MSB |
step 3 Use the below table to find the equivalent hex representation for each remainders of successive 42 MOD-16 operation:
Decimal: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
Hex: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
Decimal 10 in hex is A → LSB
Decimal 2 in hex is 2 → MSB
step 4 Write the remainders of 42 MOD-16 operation in hex equivalents from MSB to LSB produces the equivalent hex (base-16) number for decimal (base-10) 42:
= 2A
(42)10 = (2A)16
Therefore,
the hex equivalent of 42 is (2A)16.
