Decimal Separators
   HOME

TheInfoList



OR:

alt=Four types of separating decimals: a) 1,234.56. b) 1.234,56. c) 1'234,56. d) ١٬٢٣٤٫٥٦., Both a comma and a full stop (or period) are generally accepted decimal separators for international use. The apostrophe">full_stop.html" ;"title="comma and a full stop">comma and a full stop (or period) are generally accepted decimal separators for international use. The apostrophe and Arabic decimal separator are also used in certain contexts. A decimal separator is a symbol that separates the
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
part from the fractional part of a
number A number is a mathematical object used to count, measure, and label. The most basic examples are the natural numbers 1, 2, 3, 4, and so forth. Numbers can be represented in language with number words. More universally, individual numbers can ...
written in
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of th ...
form. Different countries officially designate different symbols for use as the separator. The choice of symbol can also affect the choice of symbol for the
thousands separator alt=Four types of separating decimals: a) 1,234.56. b) 1.234,56. c) 1'234,56. d) ١٬٢٣٤٫٥٦., Both a full_stop.html" ;"title="comma and a full stop">comma and a full stop (or period) are generally accepted decimal separators for interna ...
used in digit grouping. Any such symbol can be called a decimal mark, decimal marker, or decimal sign. Symbol-specific names are also used; decimal point and decimal comma refer to a dot (either baseline or middle) and
comma The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
respectively, when it is used as a decimal separator; these are the usual terms used in English, with the aforementioned generic terms reserved for abstract usage. In many contexts, when a number is spoken, the function of the separator is assumed by the spoken name of the symbol: ''comma'' or ''point'' in most cases. In some specialized contexts, the word ''decimal'' is instead used for this purpose (such as in
International Civil Aviation Organization The International Civil Aviation Organization (ICAO ) is a specialized agency of the United Nations that coordinates the principles and techniques of international air navigation, and fosters the planning and development of international sch ...
-regulated
air traffic control Air traffic control (ATC) is a service provided by ground-based air traffic controllers who direct aircraft on the ground and through a given section of controlled airspace, and can provide advisory services to aircraft in non-controlled air ...
communications). In mathematics, the decimal separator is a type of radix point, a term that also applies to number systems with bases other than ten.


History


Hellenistic–Renaissance eras

In the
Middle Ages In the history of Europe, the Middle Ages or medieval period lasted approximately from the 5th to the late 15th centuries, similarly to the post-classical period of global history. It began with the fall of the Western Roman Empire and ...
, before printing, a bar ( ¯ ) over the
units digit A numerical digit (often shortened to just digit) or numeral is a single symbol used alone (such as "1"), or in combinations (such as "15"), to represent numbers in positional notation, such as the common base 10. The name "digit" originate ...
was used to separate the integral part of a number from its fractional part, as in 995 (meaning 99.95 in
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of th ...
point format). A similar notation remains in common use as an underbar to superscript digits, especially for monetary values without a decimal separator, as in 99. Later, a "separatrix" (i.e., a short, roughly vertical ink stroke) between the units and tenths position became the norm among Arab mathematicians (e.g. 99ˌ95), while an L-shaped or
vertical bar The vertical bar, , is a glyph with various uses in mathematics, computing, and typography. It has many names, often related to particular meanings: Sheffer stroke (in logic), pipe, bar, or (literally, the word "or"), vbar, and others. Usage ...
() served as the separatrix in England. When this character was typeset, it was convenient to use the existing
comma The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
(99,95) or
full stop The full stop ( Commonwealth English), period (North American English), or full point is a punctuation mark used for several purposes, most often to mark the end of a declarative sentence (as distinguished from a question or exclamation). A ...
(99.95) instead. Positional decimal fractions appear for the first time in a book by the Arab mathematician Abu'l-Hasan al-Uqlidisi written in the 10th century. The practice is ultimately derived from the decimal
Hindu–Arabic numeral system The Hindu–Arabic numeral system (also known as the Indo-Arabic numeral system, Hindu numeral system, and Arabic numeral system) is a positional notation, positional Decimal, base-ten numeral system for representing integers; its extension t ...
used in
Indian mathematics Indian mathematics emerged in the Indian subcontinent from 1200 BCE until the end of the 18th century. In the classical period of Indian mathematics (400 CE to 1200 CE), important contributions were made by scholars like Aryabhata, Brahmagupta, ...
, and popularized by the Persian mathematician
Al-Khwarizmi Muhammad ibn Musa al-Khwarizmi , or simply al-Khwarizmi, was a mathematician active during the Islamic Golden Age, who produced Arabic-language works in mathematics, astronomy, and geography. Around 820, he worked at the House of Wisdom in B ...
, when
Latin Latin ( or ) is a classical language belonging to the Italic languages, Italic branch of the Indo-European languages. Latin was originally spoken by the Latins (Italic tribe), Latins in Latium (now known as Lazio), the lower Tiber area aroun ...
translation of his work on the
Indian numerals Indian or Indians may refer to: Associated with India * of or related to India ** Indian people ** Indian diaspora ** Languages of India ** Indian English, a dialect of the English language ** Indian cuisine Associated with indigenous peopl ...
introduced the decimal positional number system to the Western world. His '' Compendious Book on Calculation by Completion and Balancing'' presented the first systematic solution of
linear In mathematics, the term ''linear'' is used in two distinct senses for two different properties: * linearity of a '' function'' (or '' mapping''); * linearity of a '' polynomial''. An example of a linear function is the function defined by f(x) ...
and
quadratic equation In mathematics, a quadratic equation () is an equation that can be rearranged in standard form as ax^2 + bx + c = 0\,, where the variable (mathematics), variable represents an unknown number, and , , and represent known numbers, where . (If and ...
s in Arabic. Gerbert of Aurillac marked triples of columns with an arc (called a "Pythagorean arc"), when using his Hindu–Arabic numeral-based abacus in the 10th century.
Fibonacci Leonardo Bonacci ( – ), commonly known as Fibonacci, was an Italians, Italian mathematician from the Republic of Pisa, considered to be "the most talented Western mathematician of the Middle Ages". The name he is commonly called, ''Fibonacci ...
followed this convention when writing numbers, such as in his influential work in the 13th century. The earliest known record of using the decimal point is in the astronomical tables compiled by the Italian merchant and mathematician Giovanni Bianchini in the 1440s. Tables of
logarithm In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
s prepared by
John Napier John Napier of Merchiston ( ; Latinisation of names, Latinized as Ioannes Neper; 1 February 1550 – 4 April 1617), nicknamed Marvellous Merchiston, was a Scottish landowner known as a mathematician, physicist, and astronomer. He was the 8 ...
in 1614 and 1619 used the period (full stop) as the decimal separator, which was then adopted by Henry Briggs in his influential 17th century work. In
France France, officially the French Republic, is a country located primarily in Western Europe. Overseas France, Its overseas regions and territories include French Guiana in South America, Saint Pierre and Miquelon in the Atlantic Ocean#North Atlan ...
, the full stop was already in use in printing to make
Roman numerals Roman numerals are a numeral system that originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages. Numbers are written with combinations of letters from the Latin alphabet, eac ...
more readable, so the comma was chosen. Many other countries, such as Italy, also chose to use the comma to mark the decimal units position. It has been made standard by the
ISO The International Organization for Standardization (ISO ; ; ) is an independent, non-governmental, international standard development organization composed of representatives from the national standards organizations of member countries. Me ...
for international blueprints. However, English-speaking countries took the comma to separate sequences of three digits. In some countries, a raised dot or dash (') may be used for grouping or decimal separator; this is particularly common in handwriting.


English-speaking countries

In the
United States The United States of America (USA), also known as the United States (U.S.) or America, is a country primarily located in North America. It is a federal republic of 50 U.S. state, states and a federal capital district, Washington, D.C. The 48 ...
, the full stop or period (.) is used as the standard decimal separator. In the nations of the
British Empire The British Empire comprised the dominions, Crown colony, colonies, protectorates, League of Nations mandate, mandates, and other Dependent territory, territories ruled or administered by the United Kingdom and its predecessor states. It bega ...
(and, later, the
Commonwealth of Nations The Commonwealth of Nations, often referred to as the British Commonwealth or simply the Commonwealth, is an International organization, international association of member states of the Commonwealth of Nations, 56 member states, the vast majo ...
), the full stop could be used in typewritten material and its use was not banned, although the
interpunct An interpunct , also known as an interpoint, middle dot, middot, centered dot or centred dot, is a punctuation mark consisting of a vertically centered dot used for interword separation in Classical Latin. ( Word-separating spaces did not appe ...
(a.k.a. decimal point, point or mid dot) was preferred as a decimal separator, in printing technologies that could accommodate it, e.g. However, as the mid dot was already in common use in the mathematics world to indicate multiplication, the SI rejected its use as the decimal separator. During the beginning of British
metrication Metrication or metrification is the act or process of converting to the metric system of measurement. All over the world, countries have transitioned from local and traditional Unit of measurement, units of measurement to the metric system. This ...
in the late 1960s and with impending currency
decimalisation Decimalisation or decimalization (see American and British English spelling differences, spelling differences) is the conversion of a system of currency or of weights and measures to units related by Power of 10, powers of 10. Most countries have ...
, there was some debate in the United Kingdom as to whether the decimal comma or decimal point should be preferred: the
British Standards Institution The British Standards Institution (BSI) is the Standards organization, national standards body of the United Kingdom. BSI produces technical standards on a wide range of products and services and also supplies standards certification services ...
and some sectors of industry advocated the comma and the Decimal Currency Board advocated for the point. In the event, the point was chosen by the
Ministry of Technology The Ministry of Technology was a department of the government of the United Kingdom, sometimes abbreviated as "MinTech". The Ministry of Technology was established by the incoming government of Harold Wilson in October 1964 as part of Wilson's am ...
in 1968. When South Africa adopted the metric system, it adopted the comma as its decimal separator, although a number of house styles, including some English-language newspapers such as ''
The Sunday Times ''The Sunday Times'' is a British Sunday newspaper whose circulation makes it the largest in Britain's quality press market category. It was founded in 1821 as ''The New Observer''. It is published by Times Newspapers Ltd, a subsidiary of N ...
'', continue to use the full stop. Previously, signs along
California California () is a U.S. state, state in the Western United States that lies on the West Coast of the United States, Pacific Coast. It borders Oregon to the north, Nevada and Arizona to the east, and shares Mexico–United States border, an ...
roads expressed distances in decimal numbers with the decimal part in superscript, as in 37, meaning 3.7. Though California has since transitioned to mixed numbers with common fractions, the older style remains on postmile markers and bridge inventory markers.


Constructed languages

The three most spoken
international auxiliary language An international auxiliary language (sometimes acronymized as IAL or contracted as auxlang) is a language meant for communication between people from different nations, who do not share a common first language. An auxiliary language is primarily a ...
s, Ido,
Esperanto Esperanto (, ) is the world's most widely spoken Constructed language, constructed international auxiliary language. Created by L. L. Zamenhof in 1887 to be 'the International Language' (), it is intended to be a universal second language for ...
, and
Interlingua Interlingua (, ) is an international auxiliary language (IAL) developed between 1937 and 1951 by the American International Auxiliary Language Association (IALA). It is a constructed language of the "naturalistic" variety, whose vocabulary, ...
, all use the comma as the decimal separator. Interlingua has used the comma as its decimal separator since the publication of the Interlingua Grammar in 1951. Esperanto also uses the comma as its official decimal separator, whilst thousands are usually separated by non-breaking spaces (e.g. ). It is possible to separate thousands by a
full stop The full stop ( Commonwealth English), period (North American English), or full point is a punctuation mark used for several purposes, most often to mark the end of a declarative sentence (as distinguished from a question or exclamation). A ...
(e.g. ), though this is not as common. Ido's ''Kompleta Gramatiko Detaloza di la Linguo Internaciona Ido'' (Complete Detailed Grammar of the International Language Ido) officially states that commas are used for the decimal separator whilst full stops are used to separate thousands, millions, etc. So the number 12,345,678.90123 (in American notation), for instance, would be written ''12.345.678,90123'' in Ido. The 1931 grammar of Volapük uses the comma as its decimal separator but, somewhat unusually, the middle dot as its thousands separator (12·345·678,90123). In 1958, disputes between European and American delegates over the correct representation of the decimal separator nearly stalled the development of the
ALGOL ALGOL (; short for "Algorithmic Language") is a family of imperative computer programming languages originally developed in 1958. ALGOL heavily influenced many other languages and was the standard method for algorithm description used by the ...
computer programming language. ALGOL ended up allowing different decimal separators, but most computer languages and standard data formats (e.g., C,
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
, Fortran, Cascading Style Sheets (CSS)) specify a dot. C++ and a couple of others permit a quote (') as thousands separator, and many others like Python and Julia, (only) allow '_' as such a separator (it's usually ignored, i.e. also allows 1_00_00_000 aligning with the Indian number style of 1,00,00,000 that would be 10,000,000 in the US).


Radix point

In mathematics and
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, a radix point or radix character is a symbol used in the display of numbers to separate the
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
part of the value from its fractional part. In English and many other languages (including many that are written right-to-left), the integer part is at the left of the radix point, and the fraction part at the right of it. A radix point is most often used in
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of th ...
(base 10) notation, when it is more commonly called the ''decimal point'' (with
deci- ''Deci'' (symbol d) is a decimal unit prefix in the metric system denoting a factor of one tenth. Proposed in 1793, and adopted in 1795, the prefix comes from the Latin , meaning "tenth". Since 1960, the prefix is part of the International Syste ...
indicating base 10). In
English-speaking countries The English-speaking world comprises the 88 countries and territories in which English is an official, administrative, or cultural language. In the early 2000s, between one and two billion people spoke English, making it the largest language ...
, the decimal point is usually a small dot (.) placed either on the baseline, or halfway between the baseline and the top of the digits (·) In many other countries, the radix point is a comma (,) placed on the baseline. These conventions are generally used both in machine displays (
printing Printing is a process for mass reproducing text and images using a master form or template. The earliest non-paper products involving printing include cylinder seals and objects such as the Cyrus Cylinder and the Cylinders of Nabonidus. The ...
,
computer monitor A computer monitor is an output device that displays information in pictorial or textual form. A discrete monitor comprises a electronic visual display, visual display, support electronics, power supply, Housing (engineering), housing, electri ...
s) and in handwriting. It is important to know which notation is being used when working in different software programs. The respective ISO 31-0 standard defines both the comma and the small dot as decimal markers, but does not explicitly define universal radix marks for bases other than 10. Fractional numbers are rarely displayed in other number bases, but, when they are, a radix character may be used for the same purpose. When used with the binary (base 2) representation, it may be called "binary point".


Current standards

The 22nd General Conference on Weights and Measures declared in 2003, "The symbol for the decimal marker shall be either the point on the line or the comma on the line." It further reaffirmed, That is, "" is preferred over "1,000,000,000" or "1.000.000.000". This use has therefore been recommended by technical organizations, such as the United States's
National Institute of Standards and Technology The National Institute of Standards and Technology (NIST) is an agency of the United States Department of Commerce whose mission is to promote American innovation and industrial competitiveness. NIST's activities are organized into Outline of p ...
. Past versions of
ISO 8601 ISO 8601 is an international standard covering the worldwide exchange and communication of date and time-related data. It is maintained by the International Organization for Standardization (ISO) and was first published in 1988, with updates in ...
, but not the 2019 revision, also stipulated normative notation based on SI conventions, adding that the comma is preferred over the full stop. ISO 80000-1 stipulates, "The decimal sign is either a comma or a point on the line." The standard does not stipulate any preference, observing that usage will depend on customary usage in the language concerned, but adds a note that as per ISO/IEC directives, all ISO standards should use the comma as the decimal marker.


Digit grouping

For ease of reading, numbers with many digits (e.g. numbers over 999) may be divided into groups using a
delimiter A delimiter is a sequence of one or more Character (computing), characters for specifying the boundary between separate, independent regions in plain text, Expression (mathematics), mathematical expressions or other Data stream, data streams. An ...
, such as comma (), dot (), half-space or thin space (),
space Space is a three-dimensional continuum containing positions and directions. In classical physics, physical space is often conceived in three linear dimensions. Modern physicists usually consider it, with time, to be part of a boundless ...
(), underscore (; as in maritime "21_450"), or apostrophe (). In some countries, these "digit group separators" are only employed to the left of the decimal separator; in others, they are also used to separate numbers with a long fractional part. An important reason for grouping is that it allows rapid judgement of the number of digits, via telling at a glance (" subitizing") rather than counting (contrast, for example, with 100000000 for one hundred million). The use of thin spaces as separators instead of dots or commas (for example: and for "twenty thousand" and "one million"), has been official policy of the
International Bureau of Weights and Measures The International Bureau of Weights and Measures (, BIPM) is an List of intergovernmental organizations, intergovernmental organisation, through which its 64 member-states act on measurement standards in areas including chemistry, ionising radi ...
(BIPM) since 1948 (and reaffirmed in 2003), as well as of the
International Union of Pure and Applied Chemistry The International Union of Pure and Applied Chemistry (IUPAC ) is an international federation of National Adhering Organizations working for the advancement of the chemical sciences, especially by developing nomenclature and terminology. It is ...
(IUPAC), the
American Medical Association The American Medical Association (AMA) is an American professional association and lobbying group of physicians and medical students. This medical association was founded in 1847 and is headquartered in Chicago, Illinois. Membership was 271,660 ...
's widely followed '' AMA Manual of Style'', and the UK
Metrication Board The Metrication Board was a non-departmental public body that existed in the United Kingdom to promote and co-ordinate Metrication in the UK, metrication within the country. It was set up in 1969, four years after the metrication programme was a ...
, among others. The groups created by the delimiters tend to follow the usages of local languages, which vary. In European languages, large numbers are read in groups of thousands, and the delimiter (occurring every three digits when used) may be called a "thousands separator". In East Asian cultures, particularly
China China, officially the People's Republic of China (PRC), is a country in East Asia. With population of China, a population exceeding 1.4 billion, it is the list of countries by population (United Nations), second-most populous country after ...
,
Japan Japan is an island country in East Asia. Located in the Pacific Ocean off the northeast coast of the Asia, Asian mainland, it is bordered on the west by the Sea of Japan and extends from the Sea of Okhotsk in the north to the East China Sea ...
, and
Korea Korea is a peninsular region in East Asia consisting of the Korean Peninsula, Jeju Island, and smaller islands. Since the end of World War II in 1945, it has been politically Division of Korea, divided at or near the 38th parallel north, 3 ...
, large numbers are read in groups of myriads (), but the delimiter often separates the digits into groups of three. The Indian numbering system is more complex: It groups the rightmost three digits together (until the hundreds place) and then groups digits in sets of two. For example, one trillion would be written "10,00,00,00,00,000" or "". The convention for digit group separators historically varied among countries, but usually sought to distinguish the delimiter from the decimal separator. Traditionally,
English-speaking countries The English-speaking world comprises the 88 countries and territories in which English is an official, administrative, or cultural language. In the early 2000s, between one and two billion people spoke English, making it the largest language ...
(except South Africa) employed commas as the delimiter – 10,000 – and other European countries employed periods (full stops) or spaces: 10.000 or . Because of the confusion that could result in international documents, in recent years, the use of spaces as separators has been advocated by the superseded SI/ISO 31-0 standard, as well as by the BIPM and IUPAC. These groups have also begun advocating the use of a "thin space" in "groups of three". Within the United States, the American Medical Association's widely followed ''AMA Manual of Style'' also calls for a thin space. In programming languages and online
encoding In communications and Data processing, information processing, code is a system of rules to convert information—such as a letter (alphabet), letter, word, sound, image, or gesture—into another form, sometimes data compression, shortened or ...
environments (for example,
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
-only languages and environments) a thin space is not practical or available. Often, either underscores and regular word spaces, or no delimiters at all are used instead.


Data vis-à-vis mask

Digit group separators can occur either as part of the data or as a mask through which the data is displayed. This is an example of the separation of presentation and content, making it possible to display numbers in spaced groups while not inserting any whitespace characters into the string of digits that make up those numbers. In many computing contexts, it is preferred to omit the digit group separators from the data and instead overlay them as a mask (an input mask or an output mask). Common examples include
spreadsheet A spreadsheet is a computer application for computation, organization, analysis and storage of data in tabular form. Spreadsheets were developed as computerized analogs of paper accounting worksheets. The program operates on data entered in c ...
s and
database In computing, a database is an organized collection of data or a type of data store based on the use of a database management system (DBMS), the software that interacts with end users, applications, and the database itself to capture and a ...
s, in which currency values are entered without such marks but are displayed with them inserted. Similarly, phone numbers can have hyphens, spaces or parentheses as a mask rather than as data. In
web content Web content is the text, visual or audio content that is made available online and user encountered as part of the online usage and experience on websites. It may include text, images, sounds and audio, online videos, among other items place ...
, digit grouping can be done with CSS. This is useful because the number can be copied and pasted elsewhere (such as into a calculator) and parsed by the computer as-is (i.e., without the user manually purging the extraneous characters). For example: In some
programming language A programming language is a system of notation for writing computer programs. Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
s, it is possible to group the digits in the program's
source code In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer. Since a computer, at base, only ...
to make it easier to read . Examples include: Ada, C# (since ), D, Go (since ),
Haskell Haskell () is a general-purpose, statically typed, purely functional programming language with type inference and lazy evaluation. Designed for teaching, research, and industrial applications, Haskell pioneered several programming language ...
(from GHC ),
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
,
JavaScript JavaScript (), often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. Ninety-nine percent of websites use JavaScript on the client side for webpage behavior. Web browsers have ...
(since ES2021), Kotlin,
OCaml OCaml ( , formerly Objective Caml) is a General-purpose programming language, general-purpose, High-level programming language, high-level, Comparison of multi-paradigm programming languages, multi-paradigm programming language which extends the ...
,
Perl Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language". Perl was developed ...
, Python (since ), PHP (since ),
Ruby Ruby is a pinkish-red-to-blood-red-colored gemstone, a variety of the mineral corundum ( aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapph ...
, Rust and Zig. Java, JavaScript,
Swift Swift or SWIFT most commonly refers to: * SWIFT, an international organization facilitating transactions between banks ** SWIFT code * Swift (programming language) * Swift (bird), a family of birds It may also refer to: Organizations * SWIF ...
, Julia and free-form Fortran 90 use the
underscore An underscore or underline is a line drawn under a segment of text. In proofreading, underscoring is a convention that says "set this text in italic type", traditionally used on manuscript or typescript as an instruction to the printer. Its ...
() character for this purpose. As such, these languages would allow the number seven hundred million to be entered as "700_000_000". On the other hand, fixed-form Fortran ignores whitespace in all contexts, so "" would be allowed. In C++14, Rebol and Red, the use of an
apostrophe The apostrophe (, ) is a punctuation mark, and sometimes a diacritical mark, in languages that use the Latin alphabet and some other alphabets. In English, the apostrophe is used for two basic purposes: * The marking of the omission of one o ...
for digit grouping is allowed. Thus, "700'000'000" would be allowed in those languages. The code shown below, written in Kotlin, illustrates the use of separators to increase readability: val exampleNumber = 12_000_000 // twelve million


Exceptions to digit grouping

The International Bureau of Weights and Measures states that "when there are only four digits before or after the decimal marker, it is customary not to use a space to isolate a single digit." Likewise, some manuals of style state that thousands separators should not be used in normal text for numbers from to where no decimal fractional part is shown (or, in other words, for four-digit whole numbers), whereas others use thousands separators and others use both. For example, APA style stipulates a thousands separator for "most figures of or more" except for page numbers, binary digits, temperatures, etc. There are always "common-sense" country-specific exceptions to digit grouping, such as year numbers,
postal code A postal code (also known locally in various English-speaking countries throughout the world as a postcode, post code, PIN or ZIP Code) is a series of letters or numerical digit, digits or both, sometimes including spaces or punctuation, inclu ...
s, and ID numbers of predefined nongrouped format, which style guides usually point out.


In non-base-10 numbering systems

In binary (base-2), a full space can be used between groups of four digits, corresponding to a
nibble In computing, a nibble, or spelled nybble to match byte, is a unit of information that is an aggregation of four- bits; half of a byte/ octet. The unit is alternatively called nyble, nybl, half-byte or tetrade. In networking or telecommuni ...
, or equivalently to a
hexadecimal Hexadecimal (also known as base-16 or simply hex) is a Numeral system#Positional systems in detail, positional numeral system that represents numbers using a radix (base) of sixteen. Unlike the decimal system representing numbers using ten symbo ...
digit. For integer numbers, dots are used as well to separate groups of four bits. Alternatively, binary digits may be grouped by threes, corresponding to an
octal Octal (base 8) is a numeral system with eight as the base. In the decimal system, each place is a power of ten. For example: : \mathbf_ = \mathbf \times 10^1 + \mathbf \times 10^0 In the octal system, each place is a power of eight. For ex ...
digit. Similarly, in hexadecimal (base-16), full spaces are usually used to group digits into twos, making each group correspond to a
byte The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable un ...
. Additionally, groups of eight bytes are often separated by a hyphen.


Influence of calculators and computers

In countries with a decimal comma, the decimal point is also common as the "international" notation because of the influence of devices, such as electronic calculators, which use the decimal point. Most computer operating systems allow selection of the decimal separator; programs that have been carefully internationalized will follow this, but some programs ignore it and a few may even fail to operate if the setting has been changed. Computer interfaces may be set to the Unicode international "Common locale" using as defined at Details of the current (2020) definitions may be found at


Conventions worldwide


Hindu–Arabic numerals


Countries using decimal comma

Countries where a comma () is used as a decimal separator include:


Countries using decimal point

Countries where a dot () is used as a decimal separator include: Notes


Other numeral systems

Unicode defines a ''decimal separator key symbol'' (⎖ in hex U+2396, decimal 9110) which looks similar to the
apostrophe The apostrophe (, ) is a punctuation mark, and sometimes a diacritical mark, in languages that use the Latin alphabet and some other alphabets. In English, the apostrophe is used for two basic purposes: * The marking of the omission of one o ...
. This symbol is from ISO/IEC 9995 and is intended for use on a keyboard to indicate a key that performs decimal separation. In the
Arab world The Arab world ( '), formally the Arab homeland ( '), also known as the Arab nation ( '), the Arabsphere, or the Arab states, comprises a large group of countries, mainly located in West Asia and North Africa. While the majority of people in ...
, where
Eastern Arabic numerals The Eastern Arabic numerals, also called Indo-Arabic numerals or Arabic-Indic numerals as known by Unicode, are the symbols used to represent numerical digits in conjunction with the Arabic alphabet in the countries of the Mashriq (the east o ...
are used for writing numbers, a different character is used to separate the integer and fractional parts of numbers. It is referred to as an Arabic decimal separator (U+066B, rendered: ) in
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
. An Arabic thousands separator (U+066C, rendered: ) also exists. Example: (9,999.99) In Persian, the decimal separator is called . The Unicode Consortium's investigation concluded that "computer programs should render U+066B as a shortened, lowered, and possibly more slanted slash (); this should be distinguishable from the slash at the first sight." To separate
sequence In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
s of three digits, an Arabic thousands separator (rendered as: ), a Latin comma, or a blank space may be used; however this is not a standard. Example: (9,999.99) In English Braille, the decimal point, , is distinct from both the comma, , and the full stop, .


Examples of use

The following examples show the decimal separator and the thousands separator in various countries that use the Arabic numeral system. * In Belgium (Dutch), Brazil, Denmark, Germany, Greece, Indonesia, Italy, Netherlands, Portugal, Romania, Russia, Slovenia, Sweden and much of Europe, "" or "1.234.567,89" are seen. In handwriting, "1˙234˙567,89" is also seen, but never in Belgium, Brazil, Denmark, Estonia, Germany, the Netherlands, Portugal, Romania, Russia, Slovenia or Sweden. In Italy, a straight apostrophe () is also used in handwriting: "1'234'567,89". In the Netherlands and Dutch-speaking Belgium, points are used as thousands separators, and is preferred for currency values, but the space is recommended by some style guides, mostly in technical writing. * In Estonia, currency numbers often use a dot () as the decimal separator, and a space as a thousands separator. This is most visible on shopping receipts and in documents that also use other numbers with decimals, such as measurements. This practice is used to better distinguish between prices and other values with decimals. An older convention uses dots to separate thousands (with commas for decimals) – this older practice makes it easier to avoid word breaks with larger numbers. * Historically, in Germany and Austria, thousands separators were occasionally denoted by alternating uses of commas and points, e.g. "1.234,567.890,12" (or "1.234,567.890·12" in Austo-Hungary and Austria prior to 1938) for "eine Milliarde 234 Millionen ...", but this isn't seen today and contemporary German readers would require an explanation to understand it. * In Switzerland, there are two styles. Currency values use an apostrophe () as a thousands separator along with a dot () as the decimal separator, like "1'234'567.89". For other values, the SI-style "" is used, with a comma () as the decimal separator. The apostrophe is also the most common thousands separator for non-currency values, like "1'234'567,89". * In Ireland, Israel, Japan,
Korea Korea is a peninsular region in East Asia consisting of the Korean Peninsula, Jeju Island, and smaller islands. Since the end of World War II in 1945, it has been politically Division of Korea, divided at or near the 38th parallel north, 3 ...
(both), Malaysia, the Philippines, Singapore, Taiwan, Thailand, the United Kingdom, and the United States, "1,234,567.89" or "1,234,567·89" are seen. However, the latter is generally only found in older, handwritten documents. * For English-speaking regions of Canada, there are two styles. The preferred style for currency values is "$10,000.00", while the preferred style for numeric values is "". However, commas are also sometimes used, despite no longer being taught in school or used in official publications. * The
International System of Units The International System of Units, internationally known by the abbreviation SI (from French ), is the modern form of the metric system and the world's most widely used system of measurement. It is the only system of measurement with official s ...
(SI) uses the following two styles: "" and "". In their own publications, a dot () is used in the English version, while a comma () is used in the official French version. * In
Sweden Sweden, formally the Kingdom of Sweden, is a Nordic countries, Nordic country located on the Scandinavian Peninsula in Northern Europe. It borders Norway to the west and north, and Finland to the east. At , Sweden is the largest Nordic count ...
, the a colon () is sometimes used as the decimal separator for currency values, like "". * In China, commas and spaces are used to mark digit groups, since dots are used as decimal separators. There is no universal convention on digit grouping, however, so both thousands grouping and no digit grouping can be found. Japan and Taiwan are similar, although, when grouping by myriads, or
Chinese characters Chinese characters are logographs used Written Chinese, to write the Chinese languages and others from regions historically influenced by Chinese culture. Of the four independently invented writing systems accepted by scholars, they represe ...
are frequently used as separators, like the following: "1億2345万6789" or "1億2345萬6789" . Commas are used when grouping by thousands. * In
India India, officially the Republic of India, is a country in South Asia. It is the List of countries and dependencies by area, seventh-largest country by area; the List of countries by population (United Nations), most populous country since ...
, which uses the Indian numbering system, commas () are used at the thousands, , and levels. For example, () would be written "1,00,00,000", while () would be written "1,00,000". In
Pakistan Pakistan, officially the Islamic Republic of Pakistan, is a country in South Asia. It is the List of countries and dependencies by population, fifth-most populous country, with a population of over 241.5 million, having the Islam by country# ...
, there is a greater tendency to use the standard western system, but the Indian numbering system is used when conducting business in
Urdu Urdu (; , , ) is an Indo-Aryan languages, Indo-Aryan language spoken chiefly in South Asia. It is the Languages of Pakistan, national language and ''lingua franca'' of Pakistan. In India, it is an Eighth Schedule to the Constitution of Indi ...
.


Unicode characters

Used with Western Arabic numerals (0123456789): * * * * - Full stop punctuation mark. * * * * * -
Underscore An underscore or underline is a line drawn under a segment of text. In proofreading, underscoring is a convention that says "set this text in italic type", traditionally used on manuscript or typescript as an instruction to the printer. Its ...
Used with
Eastern Arabic numerals The Eastern Arabic numerals, also called Indo-Arabic numerals or Arabic-Indic numerals as known by Unicode, are the symbols used to represent numerical digits in conjunction with the Arabic alphabet in the countries of the Mashriq (the east o ...
(٠١٢٣٤٥٦٧٨٩): * * Used with keyboards: * (resembles an apostrophe)


See also

*
Algorism Algorism is the technique of performing basic arithmetic by writing numbers in place value form and applying a set of memorized rules and facts to the digits. One who practices algorism is known as an algorist. This positional notation system ...
* Cifrão *
Decimal floating point Decimal floating-point (DFP) arithmetic refers to both a representation and operations on Decimal data type, decimal floating-point numbers. Working directly with decimal (base-10) fractions can avoid the rounding errors that otherwise typically ...
* Decimal place *
Decimal representation A decimal representation of a non-negative real number is its expression as a sequence of symbols consisting of decimal digits traditionally written with a single separator: r = b_k b_\cdots b_0.a_1a_2\cdots Here is the decimal separator, ...
* '' Scriptio continua'' * '' Rasm'' *
Space (punctuation) In writing, a space () is a blank area that word divider, separates words, Sentence spacing, sentences, and other written or printed glyphs (characters). Conventions for spacing vary among languages, and in some languages the spacing rules are co ...
* Decimal section numbering * Dot-decimal notation *
International System of Units The International System of Units, internationally known by the abbreviation SI (from French ), is the modern form of the metric system and the world's most widely used system of measurement. It is the only system of measurement with official s ...
*
ISO 2145 International standard ISO 2145 defines a typographic convention for the "numbering of divisions and subdivisions in written documents". It applies to any kind of document, including manuscripts, books, journal articles, and standards. Description ...
* RKM code * Version numbering


Footnotes


References

{{DEFAULTSORT:Decimal mark Positional numeral systems Punctuation Internationalization and localization