How to convert decimal to hex

Conversion steps:

  1. Divide the number by 16.
  2. Get the integer quotient for the next iteration.
  3. Get the remainder for the hex digit.
  4. Repeat the steps until the quotient is equal to 0.

Example #1

Convert 756510 to hex:

Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
7565/1647210D0
472/1629881
29/16113D2
1/160113

So 756510 = 1D8A16

Example #2

Convert 3563510 to hex:

Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
35635/1622261530
2227/16139231
139/16812B2
8/160883

So 3563510 = 8B3316

Example #3

Convert 3564510 to hex:

Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
35645/16222613D0
2227/16139331
139/16811B2
8/160883

So 3564510 = 8B3316

 

 

How to convert hex to decimal ►

 


See also

Advertising

NUMBER CONVERSION
°• CmtoInchesConvert.com •°