How to Convert Decimal to Binary, Octal and Hex

 How to convert decimal to binary

https://go4itfreetools.blogspot.com/2023/07/How-Convert-Decimal-Binary-Octal-Hex.html


Conversion steps:

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

Example #1

Convert 1310 to binary:

Division
by 2
QuotientRemainderBit #
13/2610
6/2301
3/2112
1/2013

So 1310 = 11012

Example #2

Convert 17410 to binary:

Division
by 2
QuotientRemainderBit #
174/28700
87/24311
43/22112
21/21013
10/2504
5/2215
2/2106
1/2017

So 17410 = 101011102

Decimal to binary conversion table

Decimal
Number
Binary
Number
Hex
Number
000
111
2102
3113
41004
51015
61106
71117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F
161000010
171000111
181001012
191001113
201010014
211010115
221011016
231011117
241100018
251100119
26110101A
27110111B
28111001C
29111011D
30111101E
31111111F
3210000020
64100000040
1281000000080
256100000000100

 Octal to Decimal converter ►

How to convert from decimal to octal

Conversion steps:

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

Example #1

Convert 756210 to octal:

Division
by 8
Quotient
(integer)
Remainder
(decimal)
Remainder
(octal)
Digit #
7562/8945220
945/8118111
118/814662
14/81663
1/80114

So 756210 = 166128

Example #2

Convert 3563110 to octal:

Division
by 8
QuotientRemainder
(decimal)
Remainder
(octal)
Digit #
35631/84453770
4453/8556551
556/869442
69/88553
8/81004
1/80115

So 3563110 = 1054578

Decimal to octal conversion table

Decimal

base 10

Octal

base 8

00
11
22
33
44
55
66
77
810
911
1012
1113
1214
1315
1416
1517
1620
1721
1822
1923
2024
2125
2226
2327
2430
2531
2632
2733
2834
2935
3036
4050
5062
6074
70106
80120
90132
100144
200310
10001750
20003720

How to convert from 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 756210 to hex:

Division
by 16
Quotient
(integer)
Remainder
(decimal)
Remainder
(hex)
Digit #
7562/1647210A0
472/1629881
29/16113D2
1/160113

So 756210 = 1D8A16

Example #2

Convert 3563110 to hex:

Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
35631/16222615F0
2226/16139221
139/16811B2
8/160883

So 3563110 = 8B2F16

Decimal to hex conversion table

Decimal

base 10

Hex

base 16

00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
1711
1812
1913
2014
2115
2216
2317
2418
2519
261A
271B
281C
291D
301E
4028
5032
603C
7046
8050
905A
10064
200C8
10003E8
20007D0

Hex to decimal converter ►


Previous Post Next Post