Source: http://engr.case.edu/merat_francis/eeap282f97/lectures/03_Number%20systems.pdf