A Binary Number consists of 0s & 1s only (Two Digits) whereas a Decimal Number Consists of 0,1,2,3,4,5,6,7,8,9 (ten digits) .
For Example (111)2 is binary number equivalent to decimal number (7)10. A bit is a single Binary Digit. The binary number above has three bits.
For Example (111)2 is binary number equivalent to decimal number (7)10. A bit is a single Binary Digit. The binary number above has three bits.
Algorithm
- Divide the dividend(number) by divisor 2 and get the remainder & the quotient.
- If the quotient is not zero, then quotient becomes dividend and follow above step.
- As quotient has now become zero, the binary number is all the remainders from bottom or from right side which consists of 0 & 1.
Flowchart
To see the working of above Flowchart
Comments
Post a Comment