# Decimal Number System

Computer EngineeringDigital ElectronicsMCA

Number System represents value of number with respect to its given base. Based on its Base value, a number has unique representation and different number systems have different representation of the same number. For example, Binary, Octal, Decimal and Hexadecimal Number systems are used in microprocessor programming.

If the Base value of a number system is 10, then it is called Decimal number system which has most important role in the development of science and technology. This is the weighted (or positional) number representation, where value of each digit is determined by its position (or their weight) in a number. This is also known as base-10 number system which has 10 symbols, these are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Position of every digit has a weight which is a power of 10. Each position in the decimal system is 10 times more significant than the previous position, that means numeric value of a decimal number is determined by multiplying each digit of the number by the value of the position in which the digit appears and then adding the products.

Example-1 − The number 2025 is interpreted as −

2025 = 2x103+0x10x2+2x10x1+5x100 = 2000+0+20+5 = 2005

Here, right most bit 5 is the least significant bit (LSB) and left most bit 2 is the most significant bit (MSB).

Example-2 − The number 250.36 is interpreted as −

250.36 = 2x102+5x10x1+0x100 +3x10-1+6x10-2 = 200+50+0 + 0.3+0.06 = 250.36

Here, right most bit 6 is the least significant bit (LSB) and left most bit 2 is the most significant bit (MSB).

Most Significant Bit (MSB)Decimal PointLeast Significant Bit (LSB)
10210110010-110-210-3
1001010.10.010.001

In general, a number expressed in base-r system has coefficients multiplied by power of r.

The coefficient aj ranges from 0 to (r-1). Representing real number in base-r is as following below −

anxrn+a(n-1)xr(n-1)+... ... +a1xr1+a0+a-1xr-1+a-2xr-2+... ... +a-mxr-m

Where, a0, a1, ... a(n-1) and an are integer part digits, n is the total number of integer digits. a-1, a-2, ... and a-m are fractional part digits, m is the total number of fractional digits.