Sunday, 1 July 2012

NUMBER SYSTEMS

NUMBER SYSTEMS:


Number Systems Concepts:


The study of number systems is useful to the student of computing due to the fact that number systems other than the familiar decimal (base 10) number system are used in the computer field.

Digital computers internally use the binary (base 2) number system to represent data and perform arithmetic calculations. The binary number system is very efficient for computers, but not for humans. Representing even relatively small numbers with the binary system requires working with long strings of ones and zeroes.
The hexadecimal (base 16) number system (often called "hex" for short) provides us with a shorthand method of working with binary numbers. One digit in hex corresponds to four binary digits (bits), so the internal representation of one byte can be represented either by eight binary digits or two hexadecimal digits. Less commonly used is the octal (base 8) number system, where one digit in octal corresponds to three binary digits (bits).

In the event that a computer user (programmer, operator, end user, etc.) needs to examine a display of the internal representation of computer data (such a display is called a "dump"), viewing the data in a "shorthand" representation (such as hex or octal) is less tedious than viewing the data in binary representation. The binary, hexadecimal , and octal number systems will be looked at in the following pages.

The decimal number system that we are all familiar with is a positional number system. The actual number of symbols used in a positional number system depends on its base (also called the radix). The highest numerical symbol always has a value of one less than the base. The decimal number system has a base of 10, so the numeral with the highest value is 9; the octal number system has a base of 8, so the numeral with the highest value is 7, the binary number system has a base of 2, so the numeral with the highest value is 1, etc.
Any number can be represented by arranging symbols in specific positions. You know that in the decimal number system, the successive positions to the left of the decimal point represent units (ones), tens, hundreds, thousands, etc. Put another way, each position represents a specific power of base 10. For example, the decimal number 1,275 (written 1,27510)* can be expanded as follows:
1 2 7 510
5 x 100 = 5 x 1 = 5
7 x 101 = 7 x 10 = 70
2 x 102 = 2 x 100 = 200
1 x 103 = 1 x 1000 = 1000
------
1275 10
Remember the mathematical rule that n0 = 1, or any number raised to the zero power is equal to 1.
Here is another example of an expanded decimal number:
1 0 4 0 610
6 x 100 = 6 x 1 = 6
0 x 101 = 0 x 10 = 0
4 x 102 = 4 x 100 = 400
0 x 103 = 0 x 1000 = 0
1 x 104 = 1 x 10000 = 10000
--------
10406 10

* When doing number system problems, it is helpful to use a subscript to indicate the base of the number being worked with. Thus, the subscript "10" in 127510 indicates that we are working with the number 1275 in base 10.

TRY THIS: Expand the following decimal number:
5 1 3 010



i uplode when i have efective way to express ......................... tnx u

No comments:

Post a Comment