The decimal number system is a system of numerical representation based on ten. In its modern positional form, it uses the digits 0 through 9, with each digit’s value determined by its position: successive places represent successive powers of ten. Thus, represents four thousands, three hundreds, seven tens, and two units. Extending the same principle to positions after a decimal separator makes it possible to represent tenths, hundredths, and smaller fractional quantities.
Decimal notation is the dominant written system for everyday arithmetic, commercial accounts, measurement, and the communication of numerical results. Its modern form is part of the Hindu–Arabic numeral system, which developed through contributions made in India and was transmitted and elaborated across the Islamic world and Europe. The history of decimal numeration nevertheless extends beyond these particular digit shapes: many societies used counting systems organized around ten without using positional notation.
A distinction is necessary between a base-ten system in general and a decimal in the narrower sense of a number written with fractional decimal places. Whole numbers, terminating fractions, and infinite expansions all belong to the decimal system. Their interpretation involves place value, algorithms for calculation, the properties of rational and irrational numbers, and conventions for precision and numerical representation.
Base ten and the principle of place value
The defining feature of modern decimal notation is positional notation. The same digit can express different quantities depending on its location. In , the three occurrences of 5 represent , , and . Moving one place to the left multiplies a digit’s place value by ten; moving one place to the right divides it by ten. This regularity allows arbitrarily large numbers to be written using a fixed collection of ten symbols.
For a nonnegative integer with decimal digits , its value is
The digit occupies the units place, the tens place, and so forth. For a positive integer, the leading digit is normally nonzero. Leading zeros do not change numerical value: and denote the same integer, although the longer form may serve a separate purpose in identifiers or fixed-width records.
The digit zero is essential because it marks an unoccupied place. In , the two zeros show that there are no hundreds and no tens. Omitting them would produce , a different number. Zero’s role as a placeholder is conceptually distinct from its role as a number on which arithmetic operations are defined, although modern notation integrates both functions.
A decimal separator extends place value to negative powers of ten. Thus,
Digits immediately after the separator represent tenths, hundredths, and thousandths. Appending zeros to the right of a terminating fractional part does not change its value: . Such zeros can nevertheless communicate precision in measurement.
A minus sign supplies the sign of a negative number; it is not itself a decimal digit. Similarly, separators, grouping marks, and exponent symbols belong to the surrounding notation rather than the digit set. The number ten is written , meaning one group of ten and zero units, not a separate digit beyond 9. This illustrates a general distinction between a number and its representation: the quantity ten exists independently of the particular base used to write it.
Decimal counting before modern positional numerals
Decimal organization is older than the modern written numeral system. Counting with ten fingers offers a readily available grouping device and is widely regarded as an important influence on the prevalence of base-ten counting. This does not establish a single historical origin for all decimal systems. Number words and numeral signs developed in different communities, and counting traditions also used groups of five, twelve, twenty, or sixty.
Ancient Egyptian numeration provides a clear example of a decimal system that was not positional. Egyptian hieroglyphic numerals used distinct signs for powers of ten, including one, ten, one hundred, and one thousand. A quantity was expressed by repeating the appropriate signs. The value of a sign therefore depended primarily on its identity rather than on a position that could multiply its value. Such a system makes decimal grouping visible, but it requires more repeated symbols than modern positional notation.
Roman numerals likewise incorporated decimal groupings without being a pure base-ten positional system. Their principal signs represented , , , , , , and . Additive and subtractive conventions combined these signs into larger expressions. Written Roman numerals and the physical devices used for calculation should be distinguished: counting boards could organize counters into places even when the written notation did not use place value in the modern way.
In China, counting rods supported a decimal positional arrangement for calculation. Rod configurations represented digits in units, tens, hundreds, and higher positions, with alternating orientations helping to distinguish adjacent places. An empty position could indicate an absent value. The positional organization belonged to the arrangement on a counting surface; it did not initially require a written zero sign equivalent to the modern digit 0. Chinese written numerals also developed multiplicative-additive forms using signs for ten, hundred, and thousand.
These examples show why “decimal” and “positional” are not interchangeable. A system can organize quantities by powers of ten while assigning a separate symbol to each power. Conversely, positional systems can use bases other than ten. Babylonian mathematical notation used a sexagesimal system, based on sixty, and parts of this tradition survive in time and angular measurement. The modern decimal system combines three features that appeared in different historical settings: grouping by ten, positional organization, and a zero symbol that can preserve empty places in written numerals.
Development and transmission of modern decimal notation
The modern decimal place-value system took shape in India during the first millennium CE. Earlier Indian numeral traditions, including Brahmi numerals, supplied important antecedents for digit forms, but having decimal signs was not the same as possessing a fully developed positional system. The decisive development was the use of a limited set of digit signs whose values depended systematically on their positions, together with a way to indicate an empty place.
In 628, Brahmagupta described rules involving zero and negative quantities in the Brāhmasphuṭasiddhānta. His treatment was not identical to modern arithmetic in every respect, particularly concerning division by zero, but it documents a developed mathematical conception of zero. A frequently cited securely dated inscription at Gwalior, from 876, contains a circular zero sign in decimal numerals. Earlier evidence exists in manuscripts and inscriptions, but the dating and interpretation of some examples require care; the system cannot be assigned a single uncontested moment of invention.
Indian methods became known in the Islamic world through scholarly exchange and translation. Around the early ninth century, al-Khwarizmi wrote a work explaining calculation with Hindu numerals. Although its Arabic original is lost, its influence is reflected in later Latin texts. His Latinized name became associated with algorism, a term for calculation using the new numerals and an ancestor of the word algorithm. Subsequent Arabic-language mathematicians developed practical written procedures and extended the treatment of decimal fractions.
In the tenth century, al-Uqlidisi described decimal-fraction techniques in a work on Hindu arithmetic, adapting calculation to pen and paper. In the fifteenth century, Jamshīd al-Kāshī used decimal fractions extensively and systematically. These developments predated their widespread adoption in European printed arithmetic. They also show that the history of decimal fractions is related to, but not identical with, the history of decimal integers.
In Europe, Fibonacci presented Hindu–Arabic methods in Liber abaci in 1202, with a revised version in 1228. Adoption was gradual, as merchants, administrators, and scholars continued to use Roman numerals, counting boards, and abacuses. Printing later helped standardize instructional texts and numeral forms. In 1585, Simon Stevin published De Thiende, an influential exposition promoting decimal fractions for practical computation. His notation differed from the modern decimal point, but his advocacy helped establish the usefulness of treating fractional places as a continuation of integer places.
Algorithms for decimal arithmetic
Decimal arithmetic exploits the relation . Ten units of one place can be exchanged for one unit of the next higher place. This exchange underlies carrying in addition and regrouping, often called borrowing, in subtraction. The written algorithms are therefore not arbitrary rules: they are compact applications of place value and the distributive properties of arithmetic.
In column addition, digits with the same place value are aligned. If a column totals , the written digit is the remainder when is divided by ten, while the quotient is carried into the next column. For example, in , the units give , producing a units digit of 5 and a carry of 1. The tens then give , and the hundreds give , yielding .
Subtraction reverses this exchange. In , the absence of tens requires regrouping one hundred as ten tens, then one ten as ten units. The resulting units calculation is , followed by in the tens and in the hundreds, producing . The zeros do not create a special kind of arithmetic; they make the chain of place-value exchanges more visible.
Long multiplication combines digit products with shifts by powers of ten. For instance,
The shift in the second partial product records multiplication by ten. For terminating decimals, each operand can first be interpreted as an integer divided by a power of ten. Since and , their product is . The familiar rule for counting decimal places follows from multiplying the denominators.
Long division repeatedly determines how many copies of a divisor fit into a current partial dividend. Any remainder is multiplied by ten when the next digit is brought down. Continuing this process beyond the units place generates fractional decimal digits. It also explains why some divisions terminate and others repeat.
These written procedures are efficient for hand calculation because the digit products and sums come from small, reusable tables. A number with digits can be added to another in a number of elementary steps proportional to ; traditional long multiplication of two -digit numbers uses on the order of digit operations. Faster multiplication algorithms exist, but the elementary methods remain important because they expose the positional structure directly.
Terminating and repeating decimal fractions
A terminating decimal is a fraction whose denominator can be taken to be a power of ten. Thus . More generally, a reduced fraction , with , has a terminating decimal expansion if and only if every prime factor of is either 2 or 5. The criterion follows from the factorization
If terminates after fractional places, then divides , because and have no common factor. Conversely, if , multiplying numerator and denominator by suitable powers of 2 or 5 produces a denominator , where . This value is also the minimum number of fractional places in the terminating expansion of a noninteger reduced fraction of that form.
Fractions with other denominator factors produce nonterminating repeating decimals. Examples include , , and . The bar marks the repeating block. A repeating decimal may begin its cycle immediately after the separator or may have a finite nonrepeating prefix.
The mechanism is visible in long division. When dividing by , the possible remainders are . A zero remainder ends the process. If zero never occurs, a remainder must eventually recur because there are only finitely many possibilities. From that point onward, the same divisions generate the same digits in the same order. Every rational number therefore has a decimal expansion that terminates or eventually repeats.
The converse also holds. An eventually repeating decimal is rational because its repeating tail can be expressed as a geometric series. For example, if , then , so and . A finite nonrepeating prefix can be separated before applying the same reasoning.
The length of a repeating block has a precise interpretation in modular arithmetic. If is relatively prime to ten, the period of is the smallest positive integer satisfying . For , that value is 6. When a denominator contains both factors of 2 or 5 and other factors, the former determine the length of the nonrepeating prefix, while the remaining factor determines the eventual cycle.
Infinite expansions and the real numbers
Decimal notation extends beyond fractions that terminate or repeat. Every nonnegative real number can be represented by a finite integer part followed by a possibly infinite sequence of decimal digits. For a fractional part with digits , its value is defined by
This is a mathematical definition through an infinite series, not an instruction to finish writing infinitely many digits. The series converges because each digit lies between 0 and 9 and its tail is bounded by a convergent geometric series.
The first fractional digits give a truncation . For an expansion lying between zero and one,
Except for a tail consisting entirely of 9s, the upper inequality is strict. Thus each additional digit improves the absolute approximation by a factor of ten. Decimal expansions connect concrete numerical notation with the concept of a limit: the represented number is the limit of its finite truncations.
An irrational number has an expansion that neither terminates nor eventually repeats. Familiar examples include and pi, . Nonperiodicity does not imply that digits lack a rule. The number , formed with successively longer blocks of zeros between ones, has a simple digit-generating description but is not eventually periodic and hence is irrational.
Decimal expansions are almost, but not completely, unique. A positive number with a terminating decimal also has an alternative expansion ending in infinitely many 9s:
The equality follows from the value of the geometric series . There is no positive real difference between the two expressions. Uniqueness can be restored by adopting the convention that expansions eventually consisting entirely of 9s are excluded.
Infinite digit strings also play a role in the foundations of mathematical analysis. Cantor’s diagonal argument shows that real numbers cannot all be placed in a list indexed by the natural numbers. A decimal version constructs a number whose th digit differs from the th digit of the th listed number. Choosing replacement digits such as 1 and 2 avoids the ambiguity associated with trailing 9s. The argument concerns the size of the set of real numbers, not merely the practical difficulty of writing long expansions.
Decimal separators, scale, and numerical precision
Decimal notation requires conventions that distinguish the integer part from the fractional part and, where desired, group long strings of digits. The decimal point is common in English-language contexts, while a decimal comma is customary in many other languages and countries. Consequently, an expression such as “1,234” can mean either an integer with a grouping mark or a number slightly greater than one, depending on context.
International scientific conventions allow either a point or a comma as the decimal separator. The International System of Units permits grouping digits in threes using a small space rather than a point or comma. For example, can be grouped without making the separator ambiguous. Not every numbering tradition groups digits in threes throughout: Indian usage commonly writes a number such as , reflecting groups associated with lakhs and crores.
Scientific notation separates a number’s significant digits from its overall scale:
for nonzero in normalized form. The integer specifies the power of ten, while supplies the significand. For example, . This notation is especially useful when magnitudes span many powers of ten. Engineering notation instead uses exponents divisible by three, aligning conveniently with many SI prefixes.
Significant figures and decimal places describe different aspects of a written quantity. The values and each have four significant figures, but they have two and four decimal places, respectively. A terminal zero after a decimal separator can indicate the intended precision of a measurement, even though it does not alter the exact mathematical value. By contrast, an integer such as may leave the intended number of significant figures unclear unless additional notation is supplied.
Rounding replaces a value by a nearby value representable at a chosen precision. Rounding to the nearest multiple of gives an absolute error no greater than . Exact halfway cases require a convention. Rounding ties to an even final digit is common in computing and statistical work; other settings use different tie rules. Truncation simply discards digits and therefore has a different error pattern.
Precision in notation should not be confused with measurement accuracy. Writing more decimal places does not by itself improve an instrument or reduce systematic error. Repeated rounding can also alter a final result: rounding first to one intermediate precision and then to another need not equal rounding directly from the original value.
Relations to other bases and number-theoretic properties
Ten is one possible base rather than a mathematically compulsory choice. In a positional system with integer base , place values are powers of , and the standard digit values run from zero through . Decimal notation uses ; binary notation uses . The underlying number does not change when its representation changes. For example, decimal is binary , since .
An integer can be converted to base ten, or to another base, by repeated division by the target base. The successive remainders give the digits from right to left. Fractional digits can be generated by repeated multiplication by the target base, extracting the integer part at each step. These procedures reflect the same quotient-and-remainder structure that supports long division.
Whether a fraction terminates depends on the base. Decimal repeats in binary because its reduced denominator contains a factor of 5, which cannot divide a power of 2. Conversely, terminates in both bases, as decimal and binary . In general, a reduced fraction terminates in base exactly when every prime factor of its denominator divides . A base with more distinct small prime factors makes a wider range of simple fractions terminate, although it requires a larger set of digit values.
Decimal divisibility tests arise from congruences involving ten. Since , an integer and the sum of its decimal digits have the same remainder on division by 9. The same reasoning works for 3. Since , the alternating sum of digits determines divisibility by 11. Divisibility by 2 or 5 depends only on the final digit, while divisibility by requires the last digits to be zero.
Other apparently numerical properties may concern the representation rather than the number itself. A decimal palindrome reads the same in both directions, but it need not remain palindromic in another base. Similarly, the frequency of digits in an infinite expansion depends on the chosen base. A normal number in base ten has every block of digits occurring with limiting frequency . Irrationality alone does not guarantee this property. In particular, the base-ten normality of has not been proved, despite extensive computations of its digits.
Decimal computation in electronic systems
Most general-purpose computers perform their fundamental operations in binary, but they frequently accept and display numbers in decimal. Conversion between these representations creates a distinction between a displayed decimal value and the value stored internally. This distinction is especially important in floating-point arithmetic, where only a finite set of numbers is available at any fixed precision.
A finite binary fraction has a denominator that is a power of two. Consequently, common decimal fractions such as and cannot be represented exactly in ordinary binary floating-point formats. They are stored as nearby binary values. An operation displayed as may therefore produce a result whose full decimal rendering differs slightly from . The phenomenon follows from finite representation and rounding, not from a failure of arithmetic identities for exact real numbers.
Computers can also store decimal quantities directly. In binary-coded decimal, each decimal digit is represented by a binary code, commonly four bits per digit. Four bits allow sixteen patterns, so a simple digit-by-digit encoding uses only ten of them. Packed-decimal formats place two decimal digits in a byte, with particular systems also reserving space for a sign. Such encodings preserve decimal digit structure but require arithmetic rules different from straightforward binary integer operations.
Fixed-point representation interprets an integer coefficient at a predetermined scale. For example, a stored integer of with scale two represents . This can provide exact representation of amounts expressed in hundredths, as long as the value remains within the supported range. Division, interest calculations, and quantities requiring finer subdivisions still need explicit rules for scale and rounding. Decimal storage does not eliminate every source of numerical approximation.
The IEEE 754-2008 standard incorporated decimal floating-point formats, retained in its 2019 revision. These represent values using a decimal significand and a power-of-ten exponent, with decimal32, decimal64, and decimal128 providing 7, 16, and 34 significant decimal digits, respectively. Their finite decimal range makes quantities such as exactly representable, but values such as still require rounding.
The choice among binary floating point, decimal floating point, scaled integers, and exact rational arithmetic depends on the operations and required guarantees. Numerical analysis studies errors arising from representation and computation, while numerical stability concerns how algorithms propagate those errors. Merely changing the base cannot make an unstable calculation reliable.
Decimalization in measurement, currency, and education
The use of decimal numerals does not imply that all quantities measured with them are organized decimally. A clock display may use decimal digits while hours, minutes, and seconds retain nondecimal relations. Angles likewise commonly use 360 degrees per turn and 60 minutes per degree. These conventions illustrate the difference between the notation used to write a value and the unit structure used to measure a quantity.
Decimalization reorganizes a system so that major units and subdivisions are related by powers of ten. The metric system introduced in France during the 1790s made decimal relationships central to measurement. In the modern SI, prefixes such as milli-, centi-, kilo-, and mega- express powers of ten. Converting kilometres to metres therefore multiplies by , yielding metres, without requiring an unrelated conversion factor.
Currency decimalization similarly replaces subdivisions based on other ratios with decimal relationships, often one major unit equal to one hundred minor units. The United Kingdom adopted decimal currency on 15 February 1971. Before the change, a pound contained 20 shillings and a shilling 12 old pence, giving 240 old pence to the pound. The new system divided the pound into 100 new pence. Such changes simplify many written calculations but also require the conversion of prices, accounts, machines, and public conventions.
Not every decimalizing project has displaced established practice. During the French Revolution, decimal time divided the day into ten hours, each containing one hundred minutes of one hundred seconds. Its official use was short-lived, while ordinary timekeeping retained the older hour–minute–second structure. Successful decimal measurement and unsuccessful decimal time reform arose in the same broad setting, demonstrating that technical regularity alone does not determine adoption.
In education, decimal notation introduces several distinctions that are easy to obscure. More digits do not necessarily mean a larger value: , even though 125 is greater than 8. The comparison is resolved by aligning places, giving . Similarly, multiplication need not increase a positive quantity: multiplying by divides its value by ten. These cases require understanding place value rather than transferring rules about positive integers without qualification.
Percentages provide another bridge between decimal notation and practical quantities. A percentage expresses a ratio per hundred, so . Converting between fractions, decimals, percentages, and measured units depends on preserving the underlying quantity while changing its representation. The same principle governs the use of decimal numbers in financial records, scientific tables, instrument displays, and numerical data exchanged between computer systems.