Decimal Base to Binary Base Conversion Algorithm-
To convert a decimal number to a binary number, the decimal number is divided by binary number base i.e. 2 successively. The quotient and remainders are noted down at each stage. The quotient of the preceding stage is divided by 2 at the next stage. The process is repeated until the quotient becomes zero. Now to make binary equivalent, put the remainders in reverse order. For Example-
0 Comments