Number systems are a mathematical notation for representing numbers of a given set. They are the foundation for conveying, quantifying, and manipulating data.
Number systems are mainly classified according to notations (positional notation vs sign-value notation) and their base. Today, we largely use the Arabic numerals which is a base-10 positional notation numbering system. Machines on the other hand may use a different number system - such as the base-2.
Notation
In the positional notation, numbers are a string consisting of one or more juxtaposed digits. For example, fixed-point form number N takes the following form:
Where r is the radix or the number of digits in the number system and d are the digits defined for that given radix. The dot in the center is known as the radix point. It separates the integer part on the left from the fraction part on the right. Furthermore, the value of number N in base r can be represented in polynomial form as
Where d is the digit in the ith position.
notation examples (base 10, 2, and 16)
For example, consider the following number . Note the 10. Subscripts are used to indicate a base; often, to avoid confusion, when presenting values in different basis. Following the polynomial equation stated above, we can express out number as:
Now consider the following number . Note that the subscript is 2 indicating the number is in base-2. We can express this binary number in polynomial form as well:
Note that as part of the process we've actually converted the number to decimal.