42 Octal to Hexadecimal
42 octal = 22 hexadecimal
42 written in hexadecimal is 22, the number 34 in everyday decimal.
42 octal = 22 hexadecimal
How to convert 42 to hexadecimal
Step 1: Octal to decimal
Multiply each digit by 8 to the power of its position (0 on the right), then add:
| Digit | Place value | Digit × place |
|---|---|---|
4 | 81 = 8 | 32 |
2 | 80 = 1 | 2 |
32 + 2 = 34
Step 2: Decimal to hexadecimal
Divide by 16 repeatedly and keep the remainders. Reading the remainders from the last one to the first gives the hexadecimal digits:
| Division | Quotient | Remainder (digit) |
|---|---|---|
| 34 ÷ 16 | 2 | 2 |
| 2 ÷ 16 | 0 | 2 |
Result: 34 = 22 in hexadecimal.
42 (octal) in other systems
| Binary | 100010 |
| Decimal | 34 |
| Roman numerals | XXXIV |
| Duodecimal | 2A |
| Ternary | 1021 |
| Base 36 | Y |
| Vigesimal | 1E |
| Quaternary | 202 |
| Quinary | 114 |
| Senary | 54 |
Nearby octal to hexadecimal conversions
| 35 to hexadecimal | 1D |
| 36 to hexadecimal | 1E |
| 37 to hexadecimal | 1F |
| 40 to hexadecimal | 20 |
| 41 to hexadecimal | 21 |
| 43 to hexadecimal | 23 |
| 44 to hexadecimal | 24 |
| 45 to hexadecimal | 25 |
| 46 to hexadecimal | 26 |
| 47 to hexadecimal | 27 |
About the number 34
- 34 is an even number.
- 34 is not a prime number.
- Written in binary it needs 6 bits, so it fits in one byte.
Reverse conversion
Frequently asked questions
What is 42 in hexadecimal?
42 in octal is 22 in hexadecimal (the number 34 in decimal).