Saturday, 21 December 2013

3) Number system conversions

I)How to convert any radix number to decimal number system ?

Any radix number to  Decimal number system    

                                                               



where
     p-> No of digits to the left of the radix.
     n->No of digits to the right of the radix.
     d->value of the number.
     r->radix of the number.

1)Binary to Decimal conversion
       Example
             101112 = 1*24  + 0*23 + 1*22 + 1*21 + 1*20 = 2310
        

2)Octal number system to Decimal number system
        Example
              278 = 2*81 + 7*80  = 2310

3)Hexadecimal number system to Decimal number system
        Example
              1716 = 1*161 +7*160  = 2310

II)How to convert decimal to any radix number?

   1)Decimal to Binary conversion
        Example
              2310 = 101112
             
2)23      Remainder
2)11   ----1
2)5 --------1
2)2---------1
2)1----------0

  2)Decimal to  Octal conversion
          Example
                2310 = 278

8)23   Remainder
8)2  -----7

    3)Decimal to hexadecimal conversion
            Example
                  2310 = 1716

16)23     Remainder
16)1  -----7


More examples

1)Binary to octal
Example
11011.0112   = 011 011 . 011 = 33.38( group of 3s)

2)Binary  to hexadecimal
Example
11011.0112 = 0001 1011 . 0110 = 1B.616(group of 4s)

3)Decimal to binary conversion
Example
0.710 = ?2
0.7*2=1.4
0.4*2=0.8
0.8*2=1.6
0.6*2=1.2
Ans
 0.710 = 0.10112

4)Octal to binary conversions
Example
(123.4567)8 = (001 010 011 . 100 101 110 111)2

5)Hexadecimal to binary conversions
Example
(123A.58C)16  = (0001 0010 0011 1010 . 0101 1000 1100)2

1 comments:

beauty tips said...

http://healthandgrowthtips.blogspot.com/

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hostgator Discount Code