Computers can understand only binary numbers which are 0 and 1.
Any number or character can be operated by the computer in the binary format only.
The number 10 in binary number system is 1010.
The decimal number is representated in (base 10) and binary number is representated in (base 2).
eg. (10)10 = (1010)2
How to convert a decimal number to a binary number?
The following is a method to convert a decimal number to a binary one:
1) Divide the decimal number by 2.
2) Mark the reminder as the right most digit of the binary number.
3) Repeat the step 1 till the divident becomes 1. This 0 is the left most digit of the binary number.