Source: https://www.cl.cam.ac.uk/teaching/1415/CompFund/NumberSystemsAnnotated.pdf