How to convert decimal to hexadecimal

Good morning friends,
Today  we are going to learn how to change decimal numbers to binary numbers using some basic operations.


Conversion steps:

  • Divide the number by 16.
  • Get the integer quotient for the next iteration.
  • Get the remainder for the binary digit.
  • Repeat the steps until the quotient is equal to 0.

Example #1

Convert 756210 to hexadecimal:
Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
7562/1647210A0
472/1629881
29/16113D2
1/160113
So 756210 = 1D8A16

Example #2

Convert 3563110 to  hexadecimal :
Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
35631/16222615F0
2226/16139221
139/16811B2
8/160883
So 3563110 = 8B2F16

I hope you have understood that how to change decimal to  binary.







>>How to change decimal to octal
#source -Rapidtables

Post a Comment

Previous Post Next Post