Episode 2
Number Systems – Advanced
What you will learn
- any base: value = digit · base^position, Horner's method as a shortcut
- hexadecimal: 1 hex digit = 4 bits, 0x41 = 65, colour code #E08A4E = 224 / 138 / 78
- octal and file permissions: chmod 755 = rwx r-x r-x
- two's complement: −13 = 1111 0011, 7 − 13 = −6 with a single adder
- range and overflow: 100 + 50 = −106, Pac-Man level 256, Ariane 5, the year 2038
- floating point: 5.75 in IEEE 754 and why 0.1 + 0.2 = 0.30000000000000004
- five exam traps where most points are lost