Decimal to Binary
- Divide the decimal number by 2 repeatedly, keeping track of remainders, until the quotient becomes zero.
- Write the remainders in reverse order to obtain the binary number.
Convert 2510 to binary.
Binary equivalent of decimal 2510 is 110012| Quotient | Remainder | ||
| 25/2 | 12 | 1 | (Least Significant Bit) |
| 12/2 | 6 | 0 | |
| 6/2 | 3 | 0 | |
| 3/2 | 1 | 1 | |
| 1/2 | 0 | 1 | (Most Significant Bit) |
Convert 5110 to binary.
| Quotient | Remainder | ||
| 51/2 | 25 | 1 | (Least Significant Bit) |
| 25/2 | 12 | 1 | |
| 12/2 | 6 | 0 | |
| 6/2 | 3 | 0 | |
| 3/2 | 1 | 1 | |
| 1/2 | 0 | 1 | (Most Significant Bit) |
Related topics:
Binary to Decimal Conversion | Binary to Hexadecimal Conversion | Hexadecimal to Binary Conversion | Decimal to Hexadecimal Conversion | Hexadecimal to Decimal Conversion
List of topics: Microcomputer
No comments:
Post a Comment