Number Systems
Number Systems
DECIMAL SYSTEM
The decimal system is the most used number system. It is based on decimal digits to represent numbers.
For example, take the number 75. The number 75 means 70 plus 5.
75 = (7 x 10) + 3
The number 4828 means four thousands, eight hundreds, two tens, plus eight. Th decimal system is said
to have a base 10. Each digit is multiplied by 10 and raised to a power corresponding to the position of
the digit. For any given number, the digit on the far left is referred to as most significant digit. This
carries the highest value. The digit on the far right refers to the least significant digit.
In a positional number system, each number is represented by a string of digits in which each digit
position i has an associated weight , where r is the radix, or base, of the number system.It follows the
formula ( … a3a2a1a0 . a−1a−2a−3 … ). The decimal system, then, is a special case of a positional number
system with radix 10 and with digits in the range 0 through 9.
In the decimal system, 10 different digits are used to represent numbers with a base of 10. In the binary
system, we have only two digits, 1 and 0. Thus, numbers in the binary system are represented to base 2.
To represent larger numbers, as with decimal notation, each digit in a binary number has a value
depending on its position. For example.
102 = (1 × 2 1 ) + ( 0 × 2 0 ) = 21
It is a simple matter to convert a number from binary notation to decimal notation. In fact, we showed
several examples. It is a simple matter to convert a number from binary notation to decimal notation. In
fact, we showed several examples
\5 Hexadecimal Notation Because of the inherent binary nature of digital computer components, all
forms of data within computers are represented by various binary codes. However, no matter how
convenient the binary system is for computers, it is exceedingly cumbersome for human beings.
Consequently, most computer professionals who must spend time working with the actual raw data in
the computer prefer a more compact notation. Hexadecimal notation is not only used for representing
integers but also used as a concise notation for representing any sequence of binary digits, whether they
represent text, numbers, or some other type of data. The reasons for using hexadecimal notation are as
follows
This process is performed so naturally that an experienced programmer can mentally convert visual
representations of binary data to their hexadecimal equivalent without written effort.