Monday, February 15, 2016

Decimal to Hexadecimal Conversion

Decimal to Hexadecimal

  • Convert decimal to binary first and then convert binary to hex.
Convert 2510 to binary.

QuotientRemainder
25/2121(Least Significant Bit)
12/260
6/230
3/211
1/201(Most Significant Bit)
Binary equivalent of decimal 2510 is 110012

Convert 110012 to hex.
Group bits
11001
Replace with its hex equivalent
19
2510 = 1916
  • Convert directly from decimal to hex by repeated division , keeping track of remainders.
Convert 2510 to hex.
QuotientRemainder
25/1619
Hex equivalent of decimal 2510 is 1916

Convert 25010 to hex.
QuotientRemainder
250/1615 = F10 = A
Hex equivalent of decimal 25010 is FA16

Convert 52010 to hex.
QuotientRemainder
520/16328
32/1620
Hex equivalent of decimal 52010 is 20816



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