Binary, Denary & Hex
Binary โ denary
Sum the place values of each '1' bit (e.g. 1011โ = 8 + 0 + 2 + 1 = 11) Denary โ binary
Repeatedly divide by 2 and read remainders bottom-up, OR subtract largest powers of 2 Hex โ binary
Each hex digit = 4 binary bits (e.g. 2F = 0010 1111) Hex โ denary
(First digit ร 16) + second digit (e.g. 2F = 2ร16 + 15 = 47) Hex is used because it's compact and maps cleanly to binary โ 1 hex digit = 1 nibble = 4 bits.