- Related Questions & Answers
- Binary Number System
- Octal Number System
- Hexadecimal Number System
- Reversing the bits of a decimal number and returning new decimal number in JavaScript
- Convert octal number to decimal number in Java
- Java program to convert decimal number to hexadecimal number
- Java Program to convert hexadecimal number to decimal number
- Java Program to convert octal number to decimal number
- Java Program to convert binary number to decimal number
- Decimal count of a Number in JavaScript
- Convert one base number system to another base system in MySQL
- Program to show decimal number from rational number representation in C++
- C# program to convert decimal to Octal number
- C++ Program To Convert Decimal Number to Binary
- Convert decimal integer to hexadecimal number in Java

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

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 = 2x10^{3}+0x10x^{2}+2x10x^{1}+5x10^{0}= 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 = 2x10^{2}+5x10x^{1}+0x10^{0}+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 Point | Least Significant Bit (LSB) | |||
---|---|---|---|---|---|

10^{2} | 10^{1} | 10^{0} | 10^{-1} | 10^{-2} | 10^{-3} |

100 | 10 | 1 | 0.1 | 0.01 | 0.001 |

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

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

a_{n}xr^{n}+a_{(n-1)}xr^{(n-1)}+... ... +a_{1}xr^{1}+a_{0}+a_{-1}xr^{-1}+a_{-2}xr^{-2}+... ... +a_{-m}xr^{-m}

Where, a_{0}, a_{1}, ... a_{(n-1)} and a_{n} 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.

The main advantages of Decimal Number System are easy readable, used by humans, and easy to manipulate.

However, there are some disadvantages, like wastage of space and time. Since digital system (e.g., Computers) and hardware is based on binary system (either 0 or 1), so we need to 4 bit space to store each bit of Decimal number, whereas Hexadecimal number is also needed only 4 bit and hexadecimal number has more digits than decimal number which is an advantage of Hexadecimal Number System.

Simply, 9’s complement of a decimal number is the subtraction of it’s each digits from 9. For example, 9’s complement of decimal number 2005 is 9999 - 2005 = 7994.

10’s complement of decimal number is 9’s complement of given number plus 1 to the least significant bit (LSB). For example 10’s complement of decimal number 2005 is (9999 - 2005) + 1 = 7995.

Advertisements