Hexadecimal is a base 16 numbering system, in which each digit of a number are represented by 16 possible characters. These chracters are 0-9 and A-F. Hexadecimal is widely used when representing binary numbers, as they can perfectly represent a byte using only two digits.
Hexadecimal is an excellent way to represent large decimal numbers as you need less digits to represent the same number. For a classic 32 bit integer, you only need 8 hex digits to represent the maximum value, as opposed to the 11 required when using classical base 10 representations. Even numbers are nice!
Binary is very easily translated from hexadecimal, since four binary digits correspond to a single hexadecimal digit. Use the provided table to convert each hexadecimal digit into its binary equivalent.
Converting f0a183b16
to binary:
f0a183b16 = 11110000101000011000001110112
Binary | Hex | Binary | Hex | |
---|---|---|---|---|
0000 | 0 | 1000 | 8 | |
0001 | 1 | 1001 | 9 | |
0010 | 2 | 1010 | A | |
0011 | 3 | 1011 | B | |
0100 | 4 | 1100 | C | |
0101 | 5 | 1101 | D | |
0110 | 6 | 1110 | E | |
0111 | 7 | 1111 | F |