10.07.2015 Views

Introduction Number Systems and Conversion

Introduction Number Systems and Conversion

Introduction Number Systems and Conversion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Number</strong> <strong>Systems</strong> <strong>and</strong> <strong>Conversion</strong> 9Note that the binary point separates the positive <strong>and</strong> negative powers of 2 just asthe decimal point separates the positive <strong>and</strong> negative powers of 10 for decimalnumbers.Any positive integer R (R 1) can be chosen as the radix or base of a number system.If the base is R, then R digits (0, 1, . . . , R1) are used. For example, if R 8, thenthe required digits are 0, 1, 2, 3, 4, 5, 6, <strong>and</strong> 7. A number written in positional notationcan be exp<strong>and</strong>ed in a power series in R. For example,N (a 4 a 3 a 2 a 1 a 0 .a 1 a 2 a 3 ) R a 4 R 4 a 3 R 3 a 2 R 2 a 1 R 1 a 0 R 0 a 1 R 1 a 2 R 2 a 3 R 3where a i is the coefficient of R i <strong>and</strong> 0 a i R1. If the arithmetic indicated in thepower series expansion is done in base 10, then the result is the decimal equivalentof N. For example,147.3 8 1 8 2 4 8 1 7 8 0 3 8 1 64 32 7 103.375 10The power series expansion can be used to convert to any base. For example,converting 147 10 to base 3 would be written as147 10 1 (101) 2 (11) (101) 1 (21) (101) 0where all the numbers on the right-h<strong>and</strong> side are base 3 numbers. (Note: Inbase 3, 10 is 101, 7 is 21, etc.) To complete the conversion, base 3 arithmeticwould be used. Of course, this is not very convenient if the arithmetic is beingdone by h<strong>and</strong>. Similarly, if 147 10 is being converted to binary, the calculationwould be147 10 1 (1010) 2 (100) (1010) 1 (111) (1010) 0Again this is not convenient for h<strong>and</strong> calculation but it could be done easily in acomputer where the arithmetic is done in binary. For h<strong>and</strong> calculation, use thepower series expansion when converting from some base into base 10.For bases greater than 10, more than 10 symbols are needed to represent thedigits. In this case, letters are usually used to represent digits greater than 9. Forexample, in hexadecimal (base 16), A represents 10 10 , B represents 11 10 , C represents12 10 , D represents 13 10 , E represents 14 10 , <strong>and</strong> F represents 15 10 . Thus,A2F 16 10 16 2 2 16 1 15 16 0 2560 32 15 2607 10Next, we will discuss conversion of a decimal integer to base R using the divisionmethod. The base R equivalent of a decimal integer N can be represented asN (a n a n1 ··· a 2 a 1 a 0 ) R a n R n a n1 R n1 · · · a 2 R 2 a 1 R 1 a 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!