For a place-value system, the value of a digit results from the position of the digit within the number. The value of the number is determined by the sum of the digits, each digit being multiplied by the digits place value. The place value is the position-dependent power of the base value b of the place value system. The numbers are written as a sequence of digits from left to right, the left is started with the highest place value, and the place value is then reduced to the next position by one (b-adic representation) in the exponent. The transition to negative exponents of the base value is indicated by a ".". The number of different digit symbols required is equal to the base value b.
Structure of a number in the place-value system with the digits anan-1... a0.a-1... a-m. The value is calculated according to
Base value b = 10
Digits 0, 1, 2, ..., 9
Example of a decimal number:
Base value b = 2
Digits 0, 1
Example of a binary number:
Base value b = 16
Digits 0, 1, 2, ...,9, A, B, C, D, E, F
Example for a hexadecimal number:
In the number system conversion calculator are digits greater then 9 to be set by letters A, B, C, ...
The starting point of the iteration is the decimal number. The number is divided by the base and the integer part of the division is used for the next iteration. The remainder of the division is the digit for the new base. The iteration is repeated until the remainder is 0.
The calculation of the decimal places is made by multiplication with the base. The number before the decimal point is the next digit. The decimal part is multiplied by the base until the remainder is 0 or the maximum number of desired digits is reached. Here after 10 positions is the calculation aborted.