Convert binary numbers to hexadecimal numbers
1. 11111
2. 1101110
3. 1110101010

Completion:
1. 11111 (2) = ? (16)
* First, convert binary numbers to decimal numbers. Then, convert decimal numbers to hexadecimal numbers.

binary to decimal
11111 = 1x20 + 1x21 + 1x22 + 1x23 + 1x24
11111 = 1 + 2 + 4 + 8 + 16
11111 (2) = 31 (10)

decimal to hexadecimal
31 / 16 = 1, remains 15 or F
1 / 16 = 0, remains 1
31 (10) = 1F (16)

11111 binary number equal to 1F hexadecimal number
11111 (2) = 1F (16)

2. 1101110 (2) = ? (16)
binary to decimal
1101110 = 0x20 + 1x21 + 1x22 + 1x23 + 0x24 + 1x25 + 1x26
1101110 = 0 + 2 + 4 + 8 + 0 + 32 + 64
1101110 (2) = 110 (10)

decimal to hexadecimal
110 / 16 = 6, remains 14 or E
6 / 16 = 0, remains 6
79 (10) = 6E (16)

1101110 binary number equal to 6E hexadecimal number
1101110 (2) = 6E (16)

3. 1110101010 (2) = ? (16)
binary to decimal
1110101010 = 0x20 + 1x21 + 0x22 + 1x23 + 0x24 + 1x25 + 0x26 + 1x27 + 1x28 + 1x29
1110101010 = 0 + 2 + 0 + 8 + 0 + 32 + 0 + 128 + 256 + 512
1110101010 (2) = 938 (10)

decimal to hexadecimal
938 / 16 = 58, remains 10 or A
58 / 16 = 3, remains 10 or A
3 / 16 = 0, remains 3
938 (10) = 3AA (16)

1110101010 binary number equal to 3AA hexadecimal number
1110101010 (2) = 3AA (16)

Next→
←Prev

Related Posts

Share: FB-share Twitter-share

Get Update by Email

No comments