Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Converting between number bases using hexadecimal
- In computer science, different number bases are used:
- decimal is base 10, which has ten units (0-9)
- binary is base 2, which has two units (0-1)
- Hexadecimal, also known as hex, is the third commonly used number system. It has 16 units - 0-9 and the letters A, B, C, D, E and F.
- Decimal Binary Hexadecimal
- 0 0000 0
- 1 0001 1
- 2 0010 2
- 3 0011 3
- 4 0100 4
- 5 0101 5
- 6 0110 6
- 7 0111 7
- 8 1000 8
- 9 1001 9
- 10 1010 A
- 11 1011 B
- 12 1100 C
- 13 1101 D
- 14 1110 E
- 15 1111 F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement