Source: http://www.yorku.ca/anestis/1520/1520%20W12%20(section%20S)/Number%20systems%20and%20conversions%20from%20one%20system%20to%20another.pdf