Learning the Binary System

This is a VERY easy concept to learn, it's amazing that the binary system is not common knowledge! In fact it's easier than the system you already know!

The Hexadecimal System

The Hexadecimal system, hex, is radix-16. Until now, we have dealt with numeration systems with less characters than the decimal system. We are now going to look at a system with 16 different glyphs with magnatudes from 0 to 15. Instead of a subset showing the base, in hex we simply add 0x as a prefix to show that we are working in hex:

Decimal Number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hex Number 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17

Here are some larger numbers:

Decimal Number 40 255 256 257 89372 1512394
Hex Number 0x28 0xFF 0x100 0x101 0x15D1C 0x1713CA

This is the same process as with the octal system only hex powers accumulate every 5 bits. Congratulations, you know binary!

Back to Index

External Links