Number systems and codes covers how a digital system stores quantities as bit patterns: positional bases and conversion between them, r's and (r−1)'s complements, unsigned and signed (2's-complement) integers, decimal and unit-distance codes (BCD, excess-3, 2421, Gray), IEEE 754 floating point, and parity-based error detection. Problems on it are short calculations, such as reading a bit pattern as a signed value, deciding whether an addition overflowed, converting Gray to binary or decoding a floating-point word. Each one turns on a convention (which carry, which bias, whether there is a hidden 1), so these notes state every convention explicitly.