Various number systems are decimal ( used by human beings) binary ( used by digital systems) octal and hexadecimal (used to represent binary numbers in smaller lengths). The relation between these number systems is shown in the followings table.
Table Various Number Systems
Observing table above we can see that equivalent of decimal number 10 in binary is 1010 in octal is 12 and in hexadecimal is . a but to find the binary equivalent of decimal number 125 this table may not be useful. We have to use another method for this purpose which are discussed in the followings sections.
Table Various number systems