Base Conversion of Decimal Numbers

Convert decimal 7562.45 to octal

Integer part/8QuotientRemainder
7562/89452 (LSB)
945/81181
118/8146
14/816
1/801 (MSB)

                                    (7562)10 = (16612)8


IntegerRemainder
.45 X 8 =3(MSB).6
 .6 X 8 =4.8
 .8 X 8 =6.4
 .4 X 8 =3.2
 .2 X 8 =1.6
 .6 X 84(LSB).8

                               (.45)10 = (346314..)8

(7562.45)10 = (16612.346314..)8
  

Convert decimal 4562.25 to hexadecimal

Integer part/16QuotientRemainder
4562/162852 (LSB)
285/161713
17/1611
1/1601 (MSB)

                                    (4562)10 = (2D11)16


IntegerRemainder
.25 X 16 =4.0

                               (.25)10 = (4)16

(4652.25)10 = (2D11.4)16


Convert decimal 175.175 to binary

Integer part/2QuotientRemainder
175/2871 (LSB)
87/2481
48/2240
24/2120
12/260
6/230
3/211
1/201 (MSB)
0


                                    (175)10 = (11000011)2


IntegerRemainder
.175 X 2 =0(MSB).35
 .35 X 20.7
 .7 X 2 =1.4
 .4 X 2 =0.8
 .8 X 2 =1.6
 .6 X 21.2
 .2 X 20.4
 .4 X 20.8

                               (.175)10 = (00101100..)2

(175.175)10 = (11000011.00101100..)2

Base Conversion of Decimal Fraction Part

Decimal to Binary Conversion 

Base 10 -> Base 2

(.234375)10 = (?)2


IntegerRemainder
.234375 X 2 =0 (MSB).46875
 .46875 X 2 =0.9375
  .9375 X 2 =1.875
   .875 X 2 =1.75
    .75 X 2 =1.5
     .5 X 2 =1 (LSB)0

                                                                                               Answer: (001111)2

Decimal to Octal Conversion

Base 10 -> Base 8

(.513)10 = (?)8


IntegerRemainder
   .513 X 8 =4(MSB).104
   .104 X 8 =0.832
   .832 X 8 =6.656
   .656 X 8 =5.248
   .248 X 8 =1.984
   .984 X 87(LSB).872

                                                                              Answer: (406517....)8

Decimal to Hexadecimal Conversion

Base 10 -> Base 16

(.257)10 = (?)16


IntegerRemainder
   .257 X 16 =4(MSB).112
   .112 X 16 =1.792
   .792 X 16 =12 -> C.672
   .656 X 8 =10 -> A(LSB).752

                                                                                             Answer: (41CA...)16

To convert a decimal fraction part to any base-r system, multiplication is done by r.

Base Conversion of Decimal Integer Part

Decimal to Binary Conversion 

Base 10 -> Base 2

(51)10 = (?)2

Integer part/2QuotientRemainder
51/2251 (LSB)
25/2121
12/260
6/230
3/211
1/201 (MSB)

                                                                                               Answer: (110011)2

Decimal to Octal Conversion

Base 10 -> Base 8

(151)10 = (?)8

Integer part/8QuotientRemainder
151/8187 (LSB)
18/822
2/802 (MSB)

                                                                                               Answer: (227)8

Decimal to Hexadecimal Conversion

Base 10 -> Base 16

(1938)10 = (?)16

Integer part/16QuotientRemainder
1938/161212 (LSB)
121/1679
7/1607 (MSB)

                                                                                               Answer: (792)16




To convert a decimal integer part to any base-r system, division is done by r.

Number Base Conversions

For a number expressed in the form


Base conversion can be divided into two parts:
  1. Base conversion of Integer part,
  2. Base conversion of Fraction part

Number System - Base r

General Number in base r is expressed as:
where,
  • Allowed values of ai (digits) are 0, 1, 2, ......., r-1 ONLY
  • an is the MSD (Most Significant Digit)
  • a-m is the LSD (Least Significant Digit)
A number with base r with form/shape as
is equal to

 Example:

(1234.5)10 = 1X103 + 2X102 + 3X103 + 4X104 + 5X10-1

Table 1 : Numbers with Different Bases

Note: Numbers in base r can use only r allowable digits. 

Example:
  • 10 allowable digits (0, 1, 2, ....., 9) for decimal numbers (base 10)
  • 2 allowable digits (0 and 1) for binary numbers (base 2)
  • 8 allowable digits (0, 1, 2, ......., 7) for octal numbers (base 8)
  • 16 allowable digits (0, 1, 2, ......, 9, A, B, ....., F) for hexadecimal numbers (base 16)

Disclaimer

Privacy
The owner of this blog does not share personal information with third-parties nor does the owner store information collected about your visit for use other than to analyze content performance through the use of cookies, which you can turn off at anytime by modifying your Internet browser’s settings.

Blog Comments
The owner of this blog reserves the right to edit or delete any comments submitted to this blog without notice due to;
1. Comments deemed to be spam or questionable spam
2. Comments including profanity
3. Comments containing language or concepts that could be deemed offensive
4. Comments that attack a person individually

Terms and Conditions
All content provided on this blog is for informational purposes only. The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.

This policy is subject to change at anytime.

Previous                                                                                                                 Next

Home

Welcome to the world of VLSI Tutorials!!