Decimal to Hexadecimal
- Convert decimal to binary first and then convert binary to hex.
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 110012 to hex.
| Group bits | 1 | 1001 | |
| Replace with its hex equivalent | 1 | 9 |
- Convert directly from decimal to hex by repeated division , keeping track of remainders.
| Quotient | Remainder | |
| 25/16 | 1 | 9 |
Convert 25010 to hex.
| Quotient | Remainder | |
| 250/16 | 15 = F | 10 = A |
Convert 52010 to hex.
| Quotient | Remainder | |
| 520/16 | 32 | 8 |
| 32/16 | 2 | 0 |
Related topics:
Decimal to Binary Conversion | Binary to Decimal Conversion | Binary to Hexadecimal Conversion | Hexadecimal to Binary Conversion | Hexadecimal to Decimal Conversion
List of topics: Microcomputer
No comments:
Post a Comment