The dollar sign, also known as the peso sign, is a
currency symbol consisting of a
capital crossed with one or two vertical strokes (
or
depending on
typeface
A typeface (or font family) is a design of Letter (alphabet), letters, Numerical digit, numbers and other symbols, to be used in printing or for electronic display. Most typefaces include variations in size (e.g., 24 point), weight (e.g., light, ...
), used to indicate the unit of various
currencies around the world, including most currencies denominated "
dollar
Dollar is the name of more than 25 currencies. The United States dollar, named after the international currency known as the Spanish dollar, was established in 1792 and is the first so named that still survives. Others include the Australian d ...
" or "
peso
The peso is the monetary unit of several Hispanophone, Spanish-speaking countries in Latin America, as well as the Philippines. Originating in the Spanish Empire, the word translates to "weight". In most countries of the Americas, the symbol com ...
". The explicitly double-barred
sign is called
cifrão in the
Portuguese language
Portuguese ( or ) is a Western Romance language of the Indo-European language family originating from the Iberian Peninsula of Europe. It is the official language of Angola, Brazil, Cape Verde, Guinea-Bissau, Mozambique, Portugal and São Tom� ...
.
The sign is also used in several compound currency symbols, such as the
Brazilian real
The Brazilian real (plural, pl. '; currency symbol, sign: R$; ISO 4217, code: BRL) is the official currency of Brazil. It is subdivided into 100 centavos. The Central Bank of Brazil is the central bank and the issuing authority. The real repl ...
(R$) and the
United States dollar
The United States dollar (Currency symbol, symbol: Dollar sign, $; ISO 4217, currency code: USD) is the official currency of the United States and International use of the U.S. dollar, several other countries. The Coinage Act of 1792 introdu ...
(US$): in local use, the nationality prefix is usually omitted. In countries that have other
currency symbols, the US dollar is often assumed and the "US" prefix omitted.
The one- and two-stroke versions are often considered mere stylistic (
typeface
A typeface (or font family) is a design of Letter (alphabet), letters, Numerical digit, numbers and other symbols, to be used in printing or for electronic display. Most typefaces include variations in size (e.g., 24 point), weight (e.g., light, ...
) variants, although in some places and epochs one of them may have been specifically assigned, by law or custom, to a specific currency. The
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 ...
computer encoding standard defines a single code for both.
In most
English-speaking countries that use that symbol, it is placed to the left of the amount specified, e.g. "$1", read as "one dollar".
History
The symbol appears in business correspondence in the 1770s from
Spanish America
Spanish America refers to the Spanish territories in the Americas during the Spanish colonization of the Americas. The term "Spanish America" was specifically used during the territories' Spanish Empire, imperial era between 15th and 19th centur ...
, the early independent U.S., British America and Britain, referring to the Spanish American peso, also known as "
Spanish dollar
The Spanish dollar, also known as the piece of eight (, , , or ), is a silver coin of approximately diameter worth eight Spanish reales. It was minted in the Spanish Empire following a monetary reform in 1497 with content fine silver. It w ...
" or "piece of eight" in British America. Those coins provided the model for the currency that the United States adopted in 1792, and for the larger coins of the new Spanish American republics, such as the
Mexican peso
The Mexican peso (Currency symbol, symbol: $; ISO 4217, currency code: MXN; also abbreviated Mex$ to distinguish it from peso, other peso-denominated currencies; referred to as the peso, Mexican peso, or colloquially varo) is the official curre ...
,
Argentine peso,
Peruvian real, and
Bolivian sol coins.
With the
Coinage Act of 1792, the United States Congress created the U.S. dollar, defining it to have "the value of a Spanish milled dollar as the same is now current" but a variety of foreign coins were deemed to be
legal tender
Legal tender is a form of money that Standard of deferred payment, courts of law are required to recognize as satisfactory payment in court for any monetary debt. Each jurisdiction determines what is legal tender, but essentially it is anything ...
until the
Coinage Act of 1857
The Coinage Act of 1857 (Act of Feb. 21, 1857, Chap. 56, 34th Cong., Sess. III, 11 Stat. 163) was an act of the United States Congress which ended the status of foreign coins as legal tender, repealing all acts "authorizing the currency of foreig ...
ended this status.
The earliest U.S. dollar coins did not have any dollar symbol. The first occurrence in print is claimed to be from 1790s, by a Philadelphia printer
Archibald Binny, creator of the
Monticello typeface.
[Hephzibah Anderson (2019):]
The curious origins of the dollar symbol
". Online article at the BBC
The British Broadcasting Corporation (BBC) is a British public service broadcaster headquartered at Broadcasting House in London, England. Originally established in 1922 as the British Broadcasting Company, it evolved into its current sta ...
website, dated 29 May 2019. Accessed on 2021-08-12. The $1
United States Note
A United States Note, also known as a Legal Tender Note, is a type of Banknote, paper money that was issued from 1862 to 1971 in the United States. Having been current for 109 years, they were issued for longer than any other form of U.S. paper ...
issued by the United States in 1869 included a large symbol consisting of a "U" with the right bar overlapping an "S" like a single-bar dollar sign, as well as a very small double-stroke dollar sign in the legal warning against forgery.
Earlier history of the symbol

It is still uncertain, however, how the dollar sign came to represent the Spanish American peso. There are currently several competing hypotheses:

* The most widely accepted theory holds that the sign grew out of the Spanish and Spanish American
scribal abbreviation
Scribal abbreviations, or sigla (grammatical number, singular: siglum), are abbreviations used by ancient and medieval scribes writing in various languages, including Latin, Greek language, Greek, Old English and Old Norse.
In modern Textua ...
"p
s" for pesos. A study of late 18th- and early 19th-century
manuscript
A manuscript (abbreviated MS for singular and MSS for plural) was, traditionally, any document written by hand or typewritten, as opposed to mechanically printed or reproduced in some indirect or automated way. More recently, the term has ...
s shows that the ''s'' gradually came to be written over the ''p'', developing into a close equivalent to the "$" mark.
Oliver Pollock, a wealthy
Irish trader and early supporter of the American Revolution, used the abbreviation "ps", sometimes run together in a way that almost exactly resembled the dollar sign, in a letter dated 1778.
[Joshua D. Rothman (2018):]
The Curious Origins of the Dollar Sign
" Online article on the ''We're History'' website, dated 2018-04-01. Accessed on 2021-08-12. There are documents showing the common use of the two-stroke version in Portugal already by 1775.[
* Another hypothesis derives the sign from a depiction of the ]Pillars of Hercules
The Pillars of Hercules are the promontory, promontories that flank the entrance to the Strait of Gibraltar. The northern Pillar, Calpe Mons, is the Rock of Gibraltar. A corresponding North African peak not being predominant, the identity of ...
, a classical symbol for two sides of the Strait of Gibraltar
The Strait of Gibraltar is a narrow strait that connects the Atlantic Ocean to the Mediterranean Sea and separates Europe from Africa.
The two continents are separated by 7.7 nautical miles (14.2 kilometers, 8.9 miles) at its narrowest point. Fe ...
, with a ribbon
A ribbon or riband is a thin band of material, typically cloth but also plastic or sometimes metal, used primarily as decorative binding and tying. Cloth ribbons are made of natural materials such as silk, cotton, and jute and of synthetic mate ...
wrapped around each pillar (or both pillars) in the form of an "S". This device is a support element of the Spanish coat of arms, and appeared on the most common ''real de ocho'' coins circulating at the time in the Americas and Europe; namely, those minted at the Potosí
Potosí, known as Villa Imperial de Potosí in the colonial period, is the capital city and a municipality of the Potosí Department, Department of Potosí in Bolivia. It is one of the list of highest cities in the world, highest cities in the wo ...
mint in Bolivia
Bolivia, officially the Plurinational State of Bolivia, is a landlocked country located in central South America. The country features diverse geography, including vast Amazonian plains, tropical lowlands, mountains, the Gran Chaco Province, w ...
, which operated from 1573 to 1825.[ Indeed, one of the names used for Spanish dollars in ]Qing Dynasty
The Qing dynasty ( ), officially the Great Qing, was a Manchu-led Dynasties of China, imperial dynasty of China and an early modern empire in East Asia. The last imperial dynasty in Chinese history, the Qing dynasty was preceded by the ...
China was .[Ulrich Theobald (2016):]
Qing Period Money: Foreign Silver 'Dollars'
". Online article in the website ''ChinaKnowledge.de - An Encyclopaedia on Chinese History, Literature and Art'', dated Apr 13, 2016. Accessed on 2021-08-14.
* A variant of the above theory claims that the sign comes from the mark of the mint at Potosí
Potosí, known as Villa Imperial de Potosí in the colonial period, is the capital city and a municipality of the Potosí Department, Department of Potosí in Bolivia. It is one of the list of highest cities in the world, highest cities in the wo ...
, where a large portion of the Spanish Empire's silver was mined. A feature on these coins were the letters "P T S I" superimposed. The core of this monogram
A monogram is a motif (visual arts), motif made by overlapping or combining two or more letters or other graphemes to form one symbol. Monograms are often made by combining the initials of an individual or a company, used as recognizable symbo ...
is a (single-stroked) "$" sign.[Sandra Choron and Harry Choron (2011): ]
Money Everything You Never Knew About Your Favorite Thing to Find, Save, Spend & Covet
'' page 68.
* Yet another hypothesis notes that the English word "dollar" for the Spanish piece of eight originally came (through Dutch ''daalder'') from Joachimsthaler
A thaler or taler ( ; , previously spelled ) is one of the large silver coins minted in the states and territories of the Holy Roman Empire and the Habsburg monarchy during the Early Modern period. A ''thaler'' size silver coin has a diameter o ...
or thaler
A thaler or taler ( ; , previously spelled ) is one of the large silver coins minted in the states and territories of the Holy Roman Empire and the Habsburg monarchy during the Early Modern period. A ''thaler'' size silver coin has a diameter o ...
, a similar large German silver coin that was widely used in Europe. It is therefore conjectured that the dollar sign derived from a symbol consisting of a superimposing S and I or J that was used to denote the German silver coin. Such symbol appears in the 1686 edition of ''An Introduction to Merchants' Accounts'' by John Collins. Alternatively, the symbol could have come from a snake and cross emblem on the thaler coins.[
]
Less likely theories
The following theories seem to have been discredited or contradicted by documentary evidence:
* In 1937, historian James Alton James claimed that the symbol with two strokes was an adapted design of patriot Robert Morris in 1778, in letters written to Pollock.[
* In 1939, H. M. Larson suggested that the sign could derive from a combination of the Greek character "psi" (ψ) and "S".
* A theory claims that the sign started off as a monogram of "US", with a narrow "U" superimposed on the "S"; the bottom part of the "U" would have been lost, producing the dollar sign with two vertical lines. This theory was mentioned in letters to Notes and Queries in 1876.] Henry Towne begins his classic 1886 essay on management with this theory. This was also claimed by Ayn Rand
Alice O'Connor (born Alisa Zinovyevna Rosenbaum; , 1905March 6, 1982), better known by her pen name Ayn Rand (), was a Russian-born American writer and philosopher. She is known for her fiction and for developing a philosophical system which s ...
in her 1957 novel '' Atlas Shrugged''; in her version of the theory the monogram "US" would have been used on money bags issued by the United States Mint
The United States Mint is a bureau of the United States Department of the Treasury, Department of the Treasury responsible for producing coinage for the United States to conduct its trade and commerce, as well as controlling the movement of bull ...
.[(2018):]
Where did the dollar sign come from?
" Online article of the ''History'' channel website, dated 2018-08-22. Accessed on 2021-08-12.[
* Authors T. Seijas and J. Frederick noted that the captors of slaves in Spanish territories sometimes branded enslaved people with a symbol very similar to a one-barred dollar sign. ''Esclavo'' is Spanish for "slave," and ''clavo'' means nail. A dollar sign would then be S + ''clavo''.]
* A theory often cited in Portuguese speaking countries is that the "S" part of the doubly-stroked sign is a schematic representation of the path followed by the Umayyad Caliphate
The Umayyad Caliphate or Umayyad Empire (, ; ) was the second caliphate established after the death of the Islamic prophet Muhammad and was ruled by the Umayyad dynasty. Uthman ibn Affan, the third of the Rashidun caliphs, was also a member o ...
general Tariq Ibn Ziyad in his conquest of the Visigoth
The Visigoths (; ) were a Germanic people united under the rule of a king and living within the Roman Empire during late antiquity. The Visigoths first appeared in the Balkans, as a Roman-allied barbarian military group united under the comman ...
kingdom in 711 CE, and the two strokes represent the Pillars of Hercules that he would have crossed along that path. That symbol would have been engraved in coins commemorating his victory, and then became symbolic of currency in general.[(2015): "Origem do Cifrão". Note on the website of the Casa da Moeda do Brasil (Brazilian Mint). Accessed on 2021-08-12.]
Currencies that use the dollar sign
As symbol of the currency
The numerous currencies called "dollar
Dollar is the name of more than 25 currencies. The United States dollar, named after the international currency known as the Spanish dollar, was established in 1792 and is the first so named that still survives. Others include the Australian d ...
" use the dollar sign to express money amounts. The sign is also generally used for the many currencies called "peso
The peso is the monetary unit of several Hispanophone, Spanish-speaking countries in Latin America, as well as the Philippines. Originating in the Spanish Empire, the word translates to "weight". In most countries of the Americas, the symbol com ...
" (except the Philippine peso, which uses the symbol "₱
The Philippine peso sign (₱) is the currency symbol used for the Philippine peso, the official currency of the Philippines. The symbol resembles a Latin script, Latin letter P with two horizontal strokes. It differs from the currency symbol u ...
"). Within a country the dollar/peso sign may be used alone. In other cases, and to avoid ambiguity in international usage, it is usually combined with other glyphs, e.g. CA$ or Can$ for Canadian dollar
The Canadian dollar (currency symbol, symbol: $; ISO 4217, code: CAD; ) is the currency of Canada. It is abbreviated with the dollar sign $. There is no standard disambiguating form, but the abbreviations Can$, CA$ and C$ are frequently used f ...
. Particularly in professional contexts, the unambiguous ISO 4217 three letter code (AUD, MXN, USD, etc.) is preferred.
The dollar sign, alone or in combination with other glyphs, is or was used to denote several currencies with other names, including:
* Brazilian cruzeiro (various currencies, all defunct): ₢$, CR, Cr, NCr, etc.
* Brazilian real
The Brazilian real (plural, pl. '; currency symbol, sign: R$; ISO 4217, code: BRL) is the official currency of Brazil. It is subdivided into 100 centavos. The Central Bank of Brazil is the central bank and the issuing authority. The real repl ...
: R$
* Ethiopian birr (until 1976): E$
* Macanese pataca: MOP$
* Nicaraguan córdoba
The córdoba (, currency sign, sign: C$; ISO 4217, code: NIO) is the currency of Nicaragua and is divided into 100 ''centavos''.
History
The first córdoba was introduced with the new National Bank of Nicaragua (Banco Nacional de Nicaragua In ...
: C$
* Samoan tālā (a transliteration of the word dollar): $
* Tongan paʻanga: T$
* Malaya and British Borneo dollar (1957–1967): $
* Malaysian ringgit
The Malaysian ringgit (; plural: ringgit; symbol: RM; currency code: MYR; Malay name: ''Ringgit Malaysia''; formerly the Malaysian dollar) is the currency of Malaysia. Issued by the Central Bank of Malaysia, it is divided into 100 cents ( M ...
(1967–1997): $, M$, M
* South Vietnamese đồng (1953–1975): $,
Prefix or suffix
In the United States, Mexico, Australia, Argentina, Chile, Colombia, New Zealand, Hong Kong, Pacific Island nations, and English-speaking Canada, the sign is written before the number ("$5"), even though the word is written or spoken after it ("five dollars", "''cinco pesos''"). In French-speaking Canada, exceptionally, the dollar symbol usually appears after the number, e.g., "". (The cent symbol is written after the number in most countries that use it, e.g., "5 ¢".)
Use in the Portuguese Empire
In Portugal, Brazil, and other parts of the Portuguese Empire
The Portuguese Empire was a colonial empire that existed between 1415 and 1999. In conjunction with the Spanish Empire, it ushered in the European Age of Discovery. It achieved a global scale, controlling vast portions of the Americas, Africa ...
, the two-stroke variant of the sign named () has been used as the thousands separator in the national currency, the real (plural "réis", abbreviated "Rs."). For instance, would be equivalent to . This usage is attested in 1775, but may be older by a century or more.[João Joseph Du Beux (1775)]
Receipt of 270$000 Rs.
for purchase by of 50 volumes of the ''Acta Santorum'' by the College of the Carmo of Coimbra. Quote: "Recebemos ..a quantia de Duzentos Settenta mil reis ..por Clareza passamos este Coimbra 15 de Março de 1775. São Rs". Cartório do Colégio do Carmo, Maço 35, n.o 17. apud ALMEIDA, Manuel Lopes in "Livro, livreiros, impressores em documentos da Universidade", Arquivo de Bibliografia Portuguesa, ano X–XII, Atlântida, Coimbra, 1964–66, n o 37–48. The cifrão is always written with two vertical lines like , and is the official sign of the Cape Verdean escudo (ISO 4217
ISO 4217 is a standard published by the International Organization for Standardization (ISO) that defines alpha codes and numeric codes for the representation of currencies and provides information about the relationships between individ ...
: CVE).
In 1911, Portugal redefined the national currency as the escudo, worth , and divided into 100 ; but the ''cifrão'' continued to be used as the decimal separator
FIle:Decimal separators.svg, 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 apost ...
,[ so that meant or 123 escudos and 50 centavos. This usage ended in 2002 when the country switched to the ]euro
The euro (currency symbol, symbol: euro sign, €; ISO 4217, currency code: EUR) is the official currency of 20 of the Member state of the European Union, member states of the European Union. This group of states is officially known as the ...
. (A similar scheme to use a letter symbol instead of a decimal point is used by the RKM code
The RKM code, also referred to as "letter and numeral code for resistance and capacitance values and tolerances", "letter and digit code for resistance and capacitance values and tolerances", or informally as "R notation" is a notation to speci ...
in electrical engineering since 1952.)
Cape Verde
Cape Verde or Cabo Verde, officially the Republic of Cabo Verde, is an island country and archipelagic state of West Africa in the central Atlantic Ocean, consisting of ten volcanic islands with a combined land area of about . These islands ...
, a republic and former Portuguese colony, similarly switched from the real to their local escudo and centavos in 1914, and retains the ''cifrão'' usage as decimals separator as of 2021. Local versions of the Portuguese escudo were for a time created also for other overseas colonies, including East Timor
Timor-Leste, also known as East Timor, officially the Democratic Republic of Timor-Leste, is a country in Southeast Asia. It comprises the eastern half of the island of Timor, the coastal exclave of Oecusse in the island's northwest, and ...
(1958–1975), Portuguese India
The State of India, also known as the Portuguese State of India or Portuguese India, was a state of the Portuguese Empire founded seven years after the discovery of the sea route to the Indian subcontinent by Vasco da Gama, a subject of the ...
(1958–1961), Angola
Angola, officially the Republic of Angola, is a country on the west-Central Africa, central coast of Southern Africa. It is the second-largest Portuguese-speaking world, Portuguese-speaking (Lusophone) country in both total area and List of c ...
(1914–1928 and 1958–1977), Mozambique
Mozambique, officially the Republic of Mozambique, is a country located in Southeast Africa bordered by the Indian Ocean to the east, Tanzania to the north, Malawi and Zambia to the northwest, Zimbabwe to the west, and Eswatini and South Afr ...
(1914–1980), Portuguese Guinea
Portuguese Guinea (), called the Overseas Province of Guinea from 1951 until 1972 and then State of Guinea from 1972 until 1974, was a Portuguese overseas province in West Africa from 1588 until 10 September 1974, when it gained independence as G ...
(1914–1975), and São Tomé and Príncipe
São Tomé and Príncipe, officially the Democratic Republic of São Tomé and Príncipe, is an island country in the Gulf of Guinea, off the western equatorial coast of Central Africa. It consists of two archipelagos around the two main isla ...
(1914–1977); all using the ''cifrão'' as decimals separator.
Brazil
Brazil, officially the Federative Republic of Brazil, is the largest country in South America. It is the world's List of countries and dependencies by area, fifth-largest country by area and the List of countries and dependencies by population ...
retained the real and the ''cifrão'' as thousands separator until 1942, when it switched to the Brazilian cruzeiro, with comma as the decimals separator. The dollar sign, officially with one stroke but often rendered with two, was retained as part of the currency symbol , so one would write for 13 cruzeiros and 50 centavos.[(1960): Price on th]
front cover
of the 1960-05-07 issue of '' O Cruzeiro'' magazine, reproduced on the ''Muzeez'' website on 2016-12-105. Accessed on 2021-08-14.
The ''cifrão'' was formerly used by the Portuguese escudo (ISO: PTE) before its replacement by the euro
The euro (currency symbol, symbol: euro sign, €; ISO 4217, currency code: EUR) is the official currency of 20 of the Member state of the European Union, member states of the European Union. This group of states is officially known as the ...
and by the Portuguese Timor escudo (ISO: TPE) before its replacement by the Indonesian rupiah and the US dollar
The United States dollar (symbol: $; currency code: USD) is the official currency of the United States and several other countries. The Coinage Act of 1792 introduced the U.S. dollar at par with the Spanish silver dollar, divided it int ...
.[Lisbon-tourist-guide.com.]
Portuguese Escudo
." 2008. In Portuguese and Cape Verdean usage, the is placed as a decimal point between the escudo and values.[Banco de Cabo Verde.]
Moedas
." Accessed 25 Feb 2011. The name originates in the Arabic
Arabic (, , or , ) is a Central Semitic languages, Central Semitic language of the Afroasiatic languages, Afroasiatic language family spoken primarily in the Arab world. The International Organization for Standardization (ISO) assigns lang ...
(), meaning 'zero'.
Outside the Portuguese cultural sphere, the South Vietnamese đồng before 1975 used a method similar to the ''cifrão'' to separate values of đồng from its decimal subunit ''xu''. For example, meant 7 đồng and 50 xu.
One stroke vs. two strokes
In some places and at some times, the one- and two-stroke variants have been used in the same contexts to distinguish between the U.S. dollar and other local currency, such as the former Portuguese escudo.
However, such usage is not standardized, and the 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 ...
specification considers the two versions as graphic variants of the same symbol—a typeface design choice. Computer and typewriter keyboards usually have a single key for that sign, and many character encodings (including 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 ...
and 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 ...
) reserve a single numeric code for it. Indeed, dollar signs in the same digital document may be rendered with one or two strokes, if different computer font
A computer font is implemented as a digital data file containing a set of graphically related glyphs. A computer font is designed and created using a font editor. A computer font specifically designed for the computer screen, and not for printi ...
s are used, but the underlying codepoint U+0024 (ASCII 3610) remains unchanged.
When a specific variant is not mandated by law or custom, the choice is usually a matter of expediency or aesthetic preference. Both versions were used in the US in the 18th century. (An 1861 Civil War
A civil war is a war between organized groups within the same Sovereign state, state (or country). The aim of one side may be to take control of the country or a region, to achieve independence for a region, or to change government policies.J ...
-era advertisement depicts the two-stroked symbol as a snake.[) The two-stroke version seems to be generally less popular today, though used in some "old-style" fonts like Baskerville.
]
Use in computer software
Because of its use in early American computer applications such as business accounting, the dollar sign is almost universally present in computer character set
Character encoding is the process of assigning numbers to graphical characters, especially the written characters of human language, allowing them to be stored, transmitted, and transformed using computers. The numerical values that make up a c ...
s, and thus has been appropriated for many purposes unrelated to money in 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 and command language
A command language is a language for job control in computing. It is a domain-specific and interpreted language; common examples of a command language are shell or batch programming languages.
These languages can be used directly at the ...
s.
Encoding
The dollar sign "$" has Unicode code point U+0024 (inherited from 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 ...
via Latin-1).
*
There are no separate encodings for one- and two-line variants. The choice is typeface-dependent, they are allograph
In graphemics and typography, the term allograph is used of a glyph that is a design variant of a letter or other grapheme, such as a letter, a number, an ideograph, a punctuation mark or other typographic symbol. In graphemics, an obvious exa ...
s. However, there are three other code points that originate from other East Asian standards: the Taiwanese small form variant, the CJK fullwidth form, and the Japanese emoji
An emoji ( ; plural emoji or emojis; , ) is a pictogram, logogram, ideogram, or smiley embedded in text and used in electronic messages and web pages. The primary function of modern emoji is to fill in emotional cues otherwise missing from type ...
. The glyphs for these code points are typically larger or smaller than the primary code point, but the difference is mostly aesthetic or typographic, and the meanings of the symbols are the same.
*
*
*
However, for usage as the special character in various computing applications (see following sections), U+0024 is typically the only code that is recognized.
Support for the two-line variant varies. the 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 ...
standard considers the distinction between one- and two-bar dollar signs a stylistic distinction between fonts, and has no separate code point
A code point, codepoint or code position is a particular position in a Table (database), table, where the position has been assigned a meaning. The table may be one dimensional (a column), two dimensional (like cells in a spreadsheet), three dime ...
for the . The symbol is not in the October 2019 "pipeline", though it has been requested formally.[
Among others, the following fonts display a double-bar dollar sign for code point 0024: regular-weight Baskerville, Big Caslon, Bodoni MT, ]Garamond
Garamond is a group of many serif typefaces, named for sixteenth-century Parisian engraver Claude Garamond, generally spelled as Garamont in his lifetime. Garamond-style typefaces are popular to this day and often used for book printing and bod ...
: ($)
In LaTeX
Latex is an emulsion (stable dispersion) of polymer microparticles in water. Latices are found in nature, but synthetic latices are common as well.
In nature, latex is found as a wikt:milky, milky fluid, which is present in 10% of all floweri ...
, with the package installed, the () can be input using the command \textdollaroldstyle
. However, because of font substitution
Font substitution is the process of using one typeface in place of another when the intended typeface either is not available or does not contain glyphs for the required characters.
Font substitution can be aided by:
* classifying fonts into ...
and the lack of a dedicated code point, the author of an electronic document who uses one of these fonts intending to represent a cannot be sure that every reader will see a double-bar glyph rather than the single barred version. Because of the continued lack of support in Unicode, a single bar dollar sign is frequently employed in its place even for official purposes. Where there is any risk of misunderstanding, the ISO 4217
ISO 4217 is a standard published by the International Organization for Standardization (ISO) that defines alpha codes and numeric codes for the representation of currencies and provides information about the relationships between individ ...
three-letter acronym is used.
Programming languages
* In BASIC
Basic or BASIC may refer to:
Science and technology
* BASIC, a computer programming language
* Basic (chemistry), having the properties of a base
* Basic access authentication, in HTTP
Entertainment
* Basic (film), ''Basic'' (film), a 2003 film
...
, is appended to a variable name to define that variable’s data type
In computer science and computer programming, a data type (or simply type) is a collection or grouping of data values, usually specified by a set of possible values, a set of allowed operations on these values, and/or a representation of these ...
as a character string
In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and the length changed, or it may be fixed (after creation). ...
, for example, H$="Hello, world!"
. In discussion, the variable H$
would be referred to as “H string.”
* is prefixed to names to define variables in the PHP language and the AutoIt automation script language, scalar variables in 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 ...
language (see sigil (computer programming)), and global variables in the 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 ...
language. In Perl programming this includes scalar elements of arrays
An array is a systematic arrangement of similar objects, usually in rows and columns.
Things called an array include:
{{TOC right
Music
* In twelve-tone and serial composition, the presentation of simultaneous twelve-tone sets such that the ...
and hashes .
* In Unix shell
A Unix shell is a Command-line_interface#Command-line_interpreter, command-line interpreter or shell (computing), shell that provides a command line user interface for Unix-like operating systems. The shell is both an interactive command languag ...
s, and later in other programming languages, introduces an expression that should be evaluated to yield text. Languages that have adopted this convention include 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 ...
, 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 ...
, C#, Scala, Groovy
''Groovy'' (or, less commonly, ''groovie'' or ''groovey'') is a slang colloquialism popular during the 1960s and 1970s. It is roughly synonymous with words such as "excellent", "fashionable", or "amazing", depending on context.
History
The word ...
and Kotlin. Other languages, including 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 ...
and Python, use it to mark the place where the result of an expression elsewhere should be inserted into text.
* is used for defining hexadecimal constants in some variants of assembly language
In computing, assembly language (alternatively assembler language or symbolic machine code), often referred to simply as assembly and commonly abbreviated as ASM or asm, is any low-level programming language with a very strong correspondence bet ...
(such as the Motorola 6800, Motorola 68000 and MOS Technology 6502 assembly languages), in Pascal and in Pascal-like languages such as Free Pascal
Free Pascal Compiler (FPC) is a compiler for the closely related programming-language dialects Pascal and Object Pascal. It is free software released under the GNU General Public License, witexception clausesthat allow static linking against it ...
and Delphi
Delphi (; ), in legend previously called Pytho (Πυθώ), was an ancient sacred precinct and the seat of Pythia, the major oracle who was consulted about important decisions throughout the ancient Classical antiquity, classical world. The A ...
.
* is used in the ALGOL 68
ALGOL 68 (short for ''Algorithmic Language 1968'') is an imperative programming language member of the ALGOL family that was conceived as a successor to the ALGOL 60 language, designed with the goal of a much wider scope of application and ...
language to delimit transput format regions.
* is used in the TeX
Tex, TeX, TEX, may refer to:
People and fictional characters
* Tex (nickname), a list of people and fictional characters with the nickname
* Tex Earnhardt (1930–2020), U.S. businessman
* Joe Tex (1933–1982), stage name of American soul singer ...
typesetting
Typesetting is the composition of text for publication, display, or distribution by means of arranging physical ''type'' (or ''sort'') in mechanical systems or '' glyphs'' in digital systems representing '' characters'' (letters and other ...
language to delimit mathematical regions.
* In many versions of FORTRAN 66, could be used as an alternative to a quotation mark for delimiting strings.
* In PL/M, can be used to put a visible separation between words in compound identifiers. For example, refers to the same thing as 'SomeName'.
* In 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 ...
, is used as a function application operator.
* In an AutoHotkey script, a hotkey declared with is not triggered by a 'Send' command elsewhere in the script.
* The jQuery library defines as its main symbol, primarily as a function that queries a web page for one or more HTML element
An HTML element is a type of HTML (HyperText Markup Language) document component, one of several types of HTML nodes (there are also text nodes, comment nodes and others). The first used version of HTML was written by Tim Berners-Lee in 199 ...
s, but also with other utilities attached to it as properties like . The Prototype.js library defines it similarly for querying.
* In ASP.NET, the dollar sign used in a tag in the web page indicates an expression will follow it. The expression that follows is .NET language-agnostic, as it will work with C#, VB.NET, or any CLR supported language.
* In Erlang, the dollar sign precedes character literals. The dollar sign as a character can be written .
* In COBOL
COBOL (; an acronym for "common business-oriented language") is a compiled English-like computer programming language designed for business use. It is an imperative, procedural, and, since 2002, object-oriented language. COBOL is primarily ...
the sign is used in the Picture clause to depict a floating currency symbol as the left most character. The default symbol is ; however, if the or clause is specified, many other symbols can be used.
* In some assembly language
In computing, assembly language (alternatively assembler language or symbolic machine code), often referred to simply as assembly and commonly abbreviated as ASM or asm, is any low-level programming language with a very strong correspondence bet ...
s, such as MIPS, the sign is used to represent registers.
* In Honeywell 6000 series assembler, the sign, when used as an address, meant the address of the instruction in which it appeared.
* In CMS-2, the sign is used as a statement terminator.
* In R, the sign is used as a subsetting operator.
* In Q (programming language from Kx Systems), the sign is used as a casting/padding/enumeration/conditional operator.
* In Sass, the sign is prefixed to define a variable.
* In Svelte, the sign can be used to mark reactive statements.
Operating systems
* In CP/M
CP/M, originally standing for Control Program/Monitor and later Control Program for Microcomputers, is a mass-market operating system created in 1974 for Intel 8080/Intel 8085, 85-based microcomputers by Gary Kildall of Digital Research, Dig ...
and subsequently in all versions of DOS (86-DOS
86-DOS (known internally as QDOS, for Quick and Dirty Operating System) is a discontinued operating system developed and marketed by Seattle Computer Products (SCP) for its Intel 8086-based computer kit.
86-DOS shared a few of its commands wi ...
, MS-DOS
MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few op ...
, PC DOS, more) and derivatives, marks the end of text displayed with system function 9. CP/M developer Gary Kildall
Gary Arlen Kildall (; May 19, 1942 – July 11, 1994) was an American computer scientist and microcomputer entrepreneur. During the 1970s, Kildall created the CP/M operating system among other operating systems and programming tools, and s ...
never explained the choice and once pointedly remarked that he knew the reason while Bill Gates
William Henry Gates III (born October 28, 1955) is an American businessman and philanthropist. A pioneer of the microcomputer revolution of the 1970s and 1980s, he co-founded the software company Microsoft in 1975 with his childhood friend ...
did not. Prior uses of for the "end of line" or "end of text" include JOVIAL, CMS-2, the QED editor and DECsystem-10 (a known influence on CP/M), which displayed the character to confirm that the user pressed the escape key
On computer keyboards, the Esc key (named ''Escape key'' in the international standard series ISO/IEC 9995) is a key used to generate the escape character (which can be represented as ASCII code 27 in decimal, Unicode U+001B, or ). The escap ...
to complete a line of input.
* In Microsoft Windows
Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
, is appended to the share name to hide a shared folder or resource. For example, will be visible to other computers on a network, while will be accessible only by explicit reference. Hiding a shared folder or resource will not alter its access permissions but may render it inaccessible to programs or other functions which rely on its visibility. Most administrative shares are hidden in this way.
* In the LDAP
The Lightweight Directory Access Protocol (LDAP ) is an open, vendor-neutral, industry standard application protocol for accessing and maintaining distributed Directory service, directory information services over an Internet Protocol (IP) networ ...
directory access protocol, is used as a line separator in various standard entry attributes such as postalAddress
.
* In the UNIVAC EXEC 8 operating system, means "system". It is appended to entities such as the names of system files, the "sender" name in messages sent by the operator, and the default names of system-created files (like compiler output) when no specific name is specified (e.g., , , etc.)
* In RISC OS
RISC OS () is an operating system designed to run on ARM architecture, ARM computers. Originally designed in 1987 by Acorn Computers of England, it was made for use in its new line of ARM-based Acorn Archimedes, Archimedes personal computers an ...
, is used in system variables to separate the application name from the variables specific to that application. For example Draw$Dir
specifies the directory where the !Draw
application is located. It is also used to refer to the root directory
In a Computing, computer file system, and primarily used in the Unix and Unix-like operating systems, the root directory is the first or top-most Directory (computing), directory in a hierarchy. It can be likened to the trunk of a Tree (data st ...
of a file system.
Applications
* Microsoft Excel
Microsoft Excel is a spreadsheet editor developed by Microsoft for Microsoft Windows, Windows, macOS, Android (operating system), Android, iOS and iPadOS. It features calculation or computation capabilities, graphing tools, pivot tables, and a ...
and other spreadsheet software use the dollar sign ($) to denote a fixed row, fixed column reference, or an absolute cell reference.
* The dollar sign introduces a subfield delimiter in computer coding of library catalog records.
* matches the end of a line or string in sed, grep
grep is a command-line utility for searching plaintext datasets for lines that match a regular expression. Its name comes from the ed command g/re/p (global regular expression search and print), which has the same effect. grep was originally de ...
, and POSIX
The Portable Operating System Interface (POSIX; ) is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines application programming interfaces (APIs), along with comm ...
and 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 ...
regular expression
A regular expression (shortened as regex or regexp), sometimes referred to as rational expression, is a sequence of characters that specifies a match pattern in text. Usually such patterns are used by string-searching algorithms for "find" ...
s, as well as the end of a line or the file in text editors ed, ex, vi, pico, and derivatives.
Other uses
The symbol is sometimes used derisively, in place of the letter S, to indicate greed or excess money such as in " Micro$oft", " Di$ney", " Chel$ea" and " GW$"; or supposed overt Americanisation as in " $ky". The dollar sign is also used intentionally to stylize names such as A$AP Rocky
Rakim Athelaston Mayers (born October 3, 1988), known professionally as ASAP Rocky ( ; stylized as A$AP Rocky), is an American rapper. Born and raised in Harlem, he embarked on his musical career as a member of the hip hop collective ASAP Mo ...
, Ke$ha, and Ty Dolla $ign or words such as . In 1872, Ambrose Bierce
Ambrose Gwinnett Bierce (June 24, 1842 – ) was an American short story writer, journalist, poet, and American Civil War veteran. His book '' The Devil's Dictionary'' was named one of "The 100 Greatest Masterpieces of American Literature" by the ...
referred to California governor Leland Stanford
Amasa Leland Stanford (March 9, 1824June 21, 1893) was an American attorney, industrialist, philanthropist, and Republican Party (United States), Republican Party politician from Watervliet, New York. He served as the eighth governor of Calif ...
as .
In Scrabble
''Scrabble'' is a word game in which two to four players score points by placing tiles, each bearing a single letter, onto a Board game, game board divided into a 15×15 grid of squares. The tiles must form words that, in crossword fashion, re ...
notation, a dollar sign is placed after a word to indicate that it is valid according to the North American word lists, but not according to the British word lists.
A dollar symbol is used as unit of reactivity for a nuclear reactor, being the threshold of slow criticality, meaning a steady reaction rate, while is the threshold of prompt criticality, which means a nuclear excursion or explosion.
In the 1993 version of the Turkmen Latin alphabet $ was used as a transliteration of the Cyrillic letter Ш, in 1999 was replaced by the letter Ş.
See also
* List of circulating currencies
There are 180 currency, currencies recognized as legal tender in United Nations (UN) Member states of the United Nations, member states, United Nations General Assembly observers, UN General Assembly non-member observer states, List of states wi ...
includes their currency signs where recognized
Explanatory notes
References
Citations
General and cited sources
* Contains section on the history of the dollar sign, with much documentary evidence supporting the "pesos" hypothesis.
*
*
External links
*
{{DEFAULTSORT:Dollar Peso Sign
Currency symbols
Numismatics
Dollar