Jump to content

Dollar sign: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Less likely theories: Clarify Atlas Shrugged is a work of fiction
Tags: Mobile edit Mobile web edit
m Operating systems: clean up spacing around commas and other punctuation, replaced: , → ,
(32 intermediate revisions by 21 users not shown)
Line 13: Line 13:
}}
}}


The '''dollar sign''', also known as '''peso sign''', is a [[currency symbol]] consisting of a [[Letter case|capital]] {{angbr|[[S]]}} crossed with one or two vertical strokes (<span style="font-family:Courier New">{{char|$}}</span> or <span style="color: black !important; background-color: white !important;">{{char|{{dollar2}}}}</span> depending on [[typeface]]), used to indicate the unit of various [[currency|currencies]] around the world, including most currencies denominated "[[peso]]" and "[[dollar]]". The explicitly double-barred <span style="color: black !important; background-color: white !important;">{{char|{{dollar2}}}}</span> sign is called '''[[cifrão]]''' in the [[Portuguese language]].
The '''dollar sign''', also known as the '''peso sign''', is a [[currency symbol]] consisting of a [[Letter case|capital]] {{angbr|[[S]]}} crossed with one or two vertical strokes (<span style="font-family:Courier New">{{char|$}}</span> or <span style="color: black !important; background-color: white !important;">{{char|{{dollar2}}}}</span> depending on [[typeface]]), used to indicate the unit of various [[currency|currencies]] around the world, including most currencies denominated "[[dollar]]" or "[[peso]]". The explicitly double-barred <span style="color: black !important; background-color: white !important;">{{char|{{dollar2}}}}</span> sign is called '''[[cifrão]]''' in the [[Portuguese language]].


The sign is also used in several compound currency symbols, such as the [[Brazilian real]] (R$), the [[Nicaraguan Córdoba]] (C$) and the [[United States dollar]] (US$): in local use, the nationality prefix is usually omitted. In countries that have other [[currency symbol]]s, the US dollar is often assumed and the "US" prefix omitted.
The sign is also used in several compound currency symbols, such as the [[Brazilian real]] (R$), the [[Nicaraguan Córdoba]] (C$) and the [[United States dollar]] (US$): in local use, the nationality prefix is usually omitted. In countries that have other [[currency symbol]]s, the US dollar is often assumed and the "US" prefix omitted.


The one- and two-stroke version are often considered mere stylistic ([[typeface]]) 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]] computer encoding standard defines a single code for both.
The one- and two-stroke versions are often considered mere stylistic ([[typeface]]) 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]] computer encoding standard defines a single code for both.


In most [[English language|English]]-speaking countries that use that symbol, it is placed to the left of the amount specified, e.g. "$1", read as "one dollar".
In most [[English language|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==
==History==
===Use for the Spanish American peso in the late 1700s===
The symbol appears in business correspondence in the 1770s from [[New Spain|Spanish America]], the early independent U.S., British America and Britain, referring to the Spanish American peso,<ref>{{cite journal |first=Lawrence |last=Kinnaird |date=July 1976 |jstor=967081 |title=The Western Fringe of Revolution |journal=The Western Historical Quarterly |volume=7 |issue=3 |page=259|doi=10.2307/967081 }}</ref><ref>{{cite journal |author=Popular Science |author-link=Popular Science |journal=Popular Science |title=Origin of Dollar Sign is Traced to Mexico |date=February 1930 |issn=0161-7370 |page=59 |url=https://books.google.com/books?id=4ykDAAAAMBAJ}}</ref> also known as "[[Spanish dollar]]" 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]], [[Argentine peso]], [[Peruvian real]], and [[Bolivian sol]] coins.
The symbol appears in business correspondence in the 1770s from [[New Spain|Spanish America]], the early independent U.S., British America and Britain, referring to the Spanish American peso,<ref>{{cite journal |first=Lawrence |last=Kinnaird |date=July 1976 |jstor=967081 |title=The Western Fringe of Revolution |journal=The Western Historical Quarterly |volume=7 |issue=3 |page=259|doi=10.2307/967081 }}</ref><ref>{{cite journal |author=Popular Science |author-link=Popular Science |journal=Popular Science |title=Origin of Dollar Sign is Traced to Mexico |date=February 1930 |issn=0161-7370 |page=59 |url=https://books.google.com/books?id=4ykDAAAAMBAJ}}</ref> also known as "[[Spanish dollar]]" 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]], [[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"<ref>{{cite web |url=http://memory.loc.gov/cgi-bin/ampage?collId=llsl&fileName=001/llsl001.db&recNum=371 |title=Section 9 of the Coinage Act of 1792 |publisher=Memory.loc.gov |access-date=August 24, 2010 |archive-date=29 July 2020 |archive-url=https://web.archive.org/web/20200729031805/http://memory.loc.gov/cgi-bin/ampage?collId=llsl&fileName=001%2Fllsl001.db&recNum=371 |url-status=live }}</ref> but a variety of foreign coins were deemed to be [[legal tender]] until the [[Coinage Act of 1857]] ended this status.<ref>{{cite web |title=Massachusetts Copyright Statute,(1783), p. 370 |url=http://www.copyrighthistory.org/cam/tools/request/showRepresentation.php?id=representation_us_1783d&pagenumber=1_2&imagesize=middle |access-date=26 April 2017 |archive-date=27 April 2017 |archive-url=https://web.archive.org/web/20170427102310/http://www.copyrighthistory.org/cam/tools/request/showRepresentation.php?id=representation_us_1783d&pagenumber=1_2&imagesize=middle |url-status=live }}</ref>{{Failed verification|date=August 2022}}<ref>{{cite web |title=Maryland Copyright Statute (1783) |url=http://www.copyrighthistory.org/cam/tools/request/showRepresentation.php?id=representation_us_1783e&pagenumber=1_2&imagesize=middle |access-date=26 April 2017 |archive-date=27 April 2017 |archive-url=https://web.archive.org/web/20170427102715/http://www.copyrighthistory.org/cam/tools/request/showRepresentation.php?id=representation_us_1783e&pagenumber=1_2&imagesize=middle |url-status=live }}</ref>{{Failed verification|date=August 2022}}
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"<ref>{{cite web |url=http://memory.loc.gov/cgi-bin/ampage?collId=llsl&fileName=001/llsl001.db&recNum=371 |title=Section 9 of the Coinage Act of 1792 |publisher=Memory.loc.gov |access-date=August 24, 2010 |archive-date=29 July 2020 |archive-url=https://web.archive.org/web/20200729031805/http://memory.loc.gov/cgi-bin/ampage?collId=llsl&fileName=001%2Fllsl001.db&recNum=371 |url-status=live }}</ref><ref>{{cite web |last1=Meredith |first1=Stephanie |title=Coinage Act of April 2, 1792 {{!}} U.S. Mint |url=https://www.usmint.gov/learn/history/historical-documents/coinage-act-of-april-2-1792 |website=United States Mint |access-date=12 August 2024 |pages=3 |date=6 April 2017}}</ref> but a variety of foreign coins were deemed to be [[legal tender]] until the [[Coinage Act of 1857]] ended this status.<ref>{{cite journal |last1=Martin |first1=David A. |title=The Changing Role of Foreign Money in the United States, 1782-1857 |journal=The Journal of Economic History |date=1977 |volume=37 |issue=4 |page=1009 |url=https://www.jstor.org/stable/2119352 |issn=0022-0507}}</ref>


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 [[Binny & Ronaldson|Archibald Binny]], creator of the [[Monticello (typeface)|Monticello typeface]].<ref name=ander2019>Hephzibah Anderson (2019): "[https://www.bbc.com/worklife/article/20190528-the-curious-origin-of-the-symbol The curious origins of the dollar symbol] {{Webarchive|url=https://web.archive.org/web/20210812172054/https://www.bbc.com/worklife/article/20190528-the-curious-origin-of-the-symbol |date=12 August 2021 }}". Online article at the [[BBC]] website, dated 29 May 2019. Accessed on 2021-08-12.</ref> The $1 [[United States Note]] 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.<ref>[[:File:US-$1-LT-1869-Fr-18.jpg|Reverse of $1 United States Note (Greenback), series of 1869]]</ref>
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 [[Binny & Ronaldson|Archibald Binny]], creator of the [[Monticello (typeface)|Monticello typeface]].<ref name=ander2019>Hephzibah Anderson (2019): "[https://www.bbc.com/worklife/article/20190528-the-curious-origin-of-the-symbol The curious origins of the dollar symbol] {{Webarchive|url=https://web.archive.org/web/20210812172054/https://www.bbc.com/worklife/article/20190528-the-curious-origin-of-the-symbol |date=12 August 2021 }}". Online article at the [[BBC]] website, dated 29 May 2019. Accessed on 2021-08-12.</ref> The $1 [[United States Note]] 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.<ref>[[:File:US-$1-LT-1869-Fr-18.jpg|Reverse of $1 United States Note (Greenback), series of 1869]]</ref>
Line 39: Line 38:
<!-- [[File:Philip V Coin silver, 8 Reales Mexico.jpg|thumb|The Pillars of Hercules wrapped by a cloth band, on an 18th century Spanish coin.]]-->
<!-- [[File:Philip V Coin silver, 8 Reales Mexico.jpg|thumb|The Pillars of Hercules wrapped by a cloth band, on an 18th century Spanish coin.]]-->
<!--[[File:Dollar Symbol Evolution.svg|thumb|225px|alt=Dollar symbol evolution|Development of the dollar sign, according two hypotheses.]]-->
<!--[[File:Dollar Symbol Evolution.svg|thumb|225px|alt=Dollar symbol evolution|Development of the dollar sign, according two hypotheses.]]-->
* A variant of the above theory claims that the sign comes from the [[mint mark|mark]] of the mint at [[Potosí]], 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]] is a (single-stroked) "$" sign.<ref name=chor2011>Sandra Choron and Harry Choron (2011): ''[https://books.google.com/books?id=YEdwW78QWj0C&pg=PA68 Money Everything You Never Knew About Your Favorite Thing to Find, Save, Spend & Covet] {{Webarchive|url=https://web.archive.org/web/20230405174327/https://books.google.com/books?id=YEdwW78QWj0C&pg=PA68 |date=5 April 2023 }}''. Chronicle Books LLC 336 pages. {{isbn|9781452105598}}</ref>
* A variant of the above theory claims that the sign comes from the [[mint mark|mark]] of the mint at [[Potosí]], 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]] is a (single-stroked) "$" sign.<ref name=chor2011>Sandra Choron and Harry Choron (2011): ''[https://books.google.com/books?id=YEdwW78QWj0C&pg=PA68 Money Everything You Never Knew About Your Favorite Thing to Find, Save, Spend & Covet] {{Webarchive|url=https://web.archive.org/web/20230405174327/https://books.google.com/books?id=YEdwW78QWj0C&pg=PA68 |date=5 April 2023 }}'' page 68. {{isbn|9781452105598}}</ref>
[[File:Sample ledger with dollar sign in John Collins, An Introduction to Merchants-Accompts, 1686.png|thumb|Sample ledger with a sign for dollar from John Collins 1686]]
[[File:Sample ledger with dollar sign in John Collins, An Introduction to Merchants-Accompts, 1686.png|thumb|Sample ledger with a sign for dollar from John Collins 1686]]
* Yet another hypothesis notes that the English word "dollar" for the Spanish piece of eight originally came (through [[Dutch language|Dutch]] ''daalder'') from [[Joachimsthaler]] or [[thaler]], 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 (mathematician)|John Collins]].<ref>''[https://www.jstor.org/stable/3110685 Florence Edler de Roover. Concerning the Ancestry of the Dollar Sign. - Bulletin of the Business Historical Society. Vol. 19, No. 2 (Apr., 1945), pp. 63-64] {{Webarchive|url=https://web.archive.org/web/20180926054826/https://www.jstor.org/stable/3110685 |date=26 September 2018 }}''</ref> Alternatively, the symbol could have come from a snake and cross emblem on the thaler coins.<ref name=ander2019/>
* Yet another hypothesis notes that the English word "dollar" for the Spanish piece of eight originally came (through [[Dutch language|Dutch]] ''daalder'') from [[Joachimsthaler]] or [[thaler]], 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 (mathematician)|John Collins]].<ref>''[https://www.jstor.org/stable/3110685 Florence Edler de Roover. Concerning the Ancestry of the Dollar Sign. - Bulletin of the Business Historical Society. Vol. 19, No. 2 (Apr., 1945), pp. 63-64] {{Webarchive|url=https://web.archive.org/web/20180926054826/https://www.jstor.org/stable/3110685 |date=26 September 2018 }}''</ref> Alternatively, the symbol could have come from a snake and cross emblem on the thaler coins.<ref name=ander2019/>
Line 58: Line 57:
The dollar sign, alone or in combination with other glyphs, is or was used to denote several currencies with other names, including:
The dollar sign, alone or in combination with other glyphs, is or was used to denote several currencies with other names, including:


* [[Brazilian cruzeiro (disambiguation)|Brazilian cruzeiro]] (various currencies, all defunct): ₢$, CR<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>, Cr<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>, NCr<span style="color: black !important; background-color: white !important;">{{dollar2}}</span> etc.
* [[Brazilian cruzeiro (disambiguation)|Brazilian cruzeiro]] (various currencies, all defunct): ₢$, CR<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>, Cr<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>, NCr<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>, etc.
* [[Brazilian real]]: R$
* [[Brazilian real]]: R$
* [[Ethiopian birr]] (until 1976): E$
* [[Ethiopian birr]] (until 1976): E$
Line 74: Line 73:
===Use in the Portuguese Empire<!-- start of anchors attached to this heading; do not alter the anchors when changing the heading only --><span class="anchor" id="Cifrão"></span><span class="anchor" id="Cifrao"></span><!-- end of anchors -->===
===Use in the Portuguese Empire<!-- start of anchors attached to this heading; do not alter the anchors when changing the heading only --><span class="anchor" id="Cifrão"></span><span class="anchor" id="Cifrao"></span><!-- end of anchors -->===
[[File:Car with price.jpg|thumb|Car for sale in Cape Verde, showing use of the ''cifrão'' as decimals separator]]
[[File:Car with price.jpg|thumb|Car for sale in Cape Verde, showing use of the ''cifrão'' as decimals separator]]
In Portugal, Brazil, and other parts of the [[Portuguese Empire]], the two-stroke variant of the sign (with the name '''{{lang|pt|[[cifrão]]}}'''; ({{IPA-pt|siˈfɾɐ̃w|-|Pt-cifrão.oga}}) was used as the thousands separator of amounts in the national currency, the [[Portuguese real|real]] (plural "réis", abbreviated "Rs."): {{Cifrão|123|500}} meant "{{val|123500|u=réis}}". This usage is attested in 1775, but may be older by a century or more.<ref name=beux1775>João Joseph Du Beux (1775): [https://www.unicamp.br/iel/memoria/base_temporal/Numeros/vcXVIII_75a.htm Receipt of 270$000 Rs.] {{Webarchive|url=https://web.archive.org/web/20210812225714/https://www.unicamp.br/iel/memoria/base_temporal/Numeros/vcXVIII_75a.htm |date=12 August 2021 }} 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 {{Cifrão|270|000}} 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.</ref> It is always written with two vertical lines: [[File:Cifrão symbol.svg|15px]]. It is the official sign of the [[Cape Verdean escudo]] ([[ISO 4217]]: CVE).
In Portugal, Brazil, and other parts of the [[Portuguese Empire]], the two-stroke variant of the sign (with the name '''{{lang|pt|[[cifrão]]}}'''; ({{IPA|pt|siˈfɾɐ̃w|-|Pt-cifrão.oga}}) was used as the thousands separator of amounts in the national currency, the [[Portuguese real|real]] (plural "réis", abbreviated "Rs."): {{Cifrão|123|500}} meant "{{val|123500|u=réis}}". This usage is attested in 1775, but may be older by a century or more.<ref name=beux1775>João Joseph Du Beux (1775): [https://www.unicamp.br/iel/memoria/base_temporal/Numeros/vcXVIII_75a.htm Receipt of 270$000 Rs.] {{Webarchive|url=https://web.archive.org/web/20210812225714/https://www.unicamp.br/iel/memoria/base_temporal/Numeros/vcXVIII_75a.htm |date=12 August 2021 }} 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 {{Cifrão|270|000}} 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.</ref> It is always written with two vertical lines: [[File:Cifrão symbol.svg|15px]]. It is the official sign of the [[Cape Verdean escudo]] ([[ISO 4217]]: CVE).


In 1911, Portugal redefined the national currency as the [[Portuguese escudo|escudo]], worth {{val|1000|u=réis}}, and divided into 100 {{lang|pt|centavos|nocat=yes}}; but the ''cifrão'' continued to be used as the [[decimal point|decimal separator]],<ref name=silva2019/> so that {{Cifrão|123|50}} meant {{val|123.50|u=escudos}} or 123 escudos and 50 centavos. This usage ended in 2002 when the country switched to the [[euro]]. (A similar scheme to use a letter symbol instead of a decimal point is used by the [[RKM code]] in electrical engineering since 1952.)
In 1911, Portugal redefined the national currency as the [[Portuguese escudo|escudo]], worth {{val|1000|u=réis}}, and divided into 100 {{lang|pt|centavos|nocat=yes}}; but the ''cifrão'' continued to be used as the [[decimal point|decimal separator]],<ref name=silva2019/> so that {{Cifrão|123|50}} meant {{val|123.50|u=escudos}} or 123 escudos and 50 centavos. This usage ended in 2002 when the country switched to the [[euro]]. (A similar scheme to use a letter symbol instead of a decimal point is used by the [[RKM code]] in electrical engineering since 1952.)
Line 112: Line 111:
However, for usage as the special character in various computing applications (see following sections), U+0024 is typically the only code that is recognized.
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. {{As of|2019|post=,}} the [[Unicode]] standard considers the distinction between one- and two-bar dollar signs a [[Allograph|stylistic distinction between fonts]], and has no separate [[code point]] for the {{lang|pt|cifrão}}. The symbol is not in the October 2019 'pipeline',<ref>{{cite web | url= https://unicode.org/alloc/Pipeline.html | title= Proposed New Characters: The Pipeline | publisher= [[Unicode Consortium]] | date= 11 October 2019 | accessdate= 26 December 2019 | archive-date= 31 March 2017 | archive-url= https://web.archive.org/web/20170331011749/https://unicode.org/alloc/Pipeline.html | url-status= live }}</ref> though it has been requested formally.<ref name=silva2019/>
Support for the two-line variant varies. {{As of|2019|post=,}} the [[Unicode]] standard considers the distinction between one- and two-bar dollar signs a [[Allograph|stylistic distinction between fonts]], and has no separate [[code point]] for the {{lang|pt|cifrão}}. The symbol is not in the October 2019 "pipeline",<ref>{{cite web | url= https://unicode.org/alloc/Pipeline.html | title= Proposed New Characters: The Pipeline | publisher= [[Unicode Consortium]] | date= 11 October 2019 | accessdate= 26 December 2019 | archive-date= 31 March 2017 | archive-url= https://web.archive.org/web/20170331011749/https://unicode.org/alloc/Pipeline.html | url-status= live }}</ref> though it has been requested formally.<ref name=silva2019/>


Among others, the following fonts display a double-bar dollar sign for code point 0024:{{Citation needed|date=February 2011}} regular-weight [[Baskerville]], [[Big Caslon]], [[Bodoni MT]], [[Garamond]]: (<span style="font-family:Bodoni MT, Big Caslon, Garamond, Baskerville, Brush Script MT, STFangsong, STKaiti, STSong, serif">$</span>) <!-- Please do not add any font that does not have its own article. The list is already long enough to illustrate the point. -->
Among others, the following fonts display a double-bar dollar sign for code point 0024:{{Citation needed|date=February 2011}} regular-weight [[Baskerville]], [[Big Caslon]], [[Bodoni MT]], [[Garamond]]: (<span style="font-family:Bodoni MT, Big Caslon, Garamond, Baskerville, Brush Script MT, STFangsong, STKaiti, STSong, serif">$</span>) <!-- Please do not add any font that does not have its own article. The list is already long enough to illustrate the point. -->


In [[LaTeX]], with the textcomp package installed, the {{lang|pt|cifrão}} (<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>) can be input using the command <code>\textdollaroldstyle</code>. However, because of [[font substitution]] and the lack of a dedicated code point, the author of an electronic document who uses one of these fonts intending to represent a {{lang|pt|cifrão}} 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.<ref name="Moedas"/><ref>Banco Central do Brasil. "[http://www4.bcb.gov.br/pec/taxas/batch/tabmoedasi.asp?id=curtable Currency table.] {{Webarchive|url=https://web.archive.org/web/20170514181516/http://www4.bcb.gov.br/pec/taxas/batch/tabmoedasi.asp?id=curtable |date=14 May 2017 }}" Accessed 24 Feb 2011.</ref> Where there is any risk of misunderstanding, the ISO 4217 [[three-letter acronym]] is used.
In [[LaTeX]], with the {{Proper name|textcomp}} package installed, the {{lang|pt|cifrão}} (<span style="color: black !important; background-color: white !important;">{{dollar2}}</span>) can be input using the command <code>\textdollaroldstyle</code>. However, because of [[font substitution]] and the lack of a dedicated code point, the author of an electronic document who uses one of these fonts intending to represent a {{lang|pt|cifrão}} 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.<ref name="Moedas"/><ref>Banco Central do Brasil. "[http://www4.bcb.gov.br/pec/taxas/batch/tabmoedasi.asp?id=curtable Currency table.] {{Webarchive|url=https://web.archive.org/web/20170514181516/http://www4.bcb.gov.br/pec/taxas/batch/tabmoedasi.asp?id=curtable |date=14 May 2017 }}" Accessed 24 Feb 2011.</ref> Where there is any risk of misunderstanding, the ISO 4217 [[three-letter acronym]] is used.


===Programming languages===
===Programming languages===
* {{code|$}} was used for defining [[string (computer science)|string]] [[BASIC#Data types and variables|variables]] in older versions of the [[BASIC]] language, e.g. {{code|CHR$}} ({{code|$}} was often pronounced "string" instead of "dollar" in this use).
* In [[BASIC]], {{code|$}} is appended to a [[variable (computer science)|variable]] name to define that variable’s [[data type]] as a [[string (computer science)|character string]], for example, <code>H$="Hello, world!"</code>.&nbsp; In discussion, the variable <code>H$</code> would be referred to as “H string.
* {{code|$}} is prefixed to names to define [[variable (mathematics)|variables]] in the [[PHP]] language and the [[AutoIt]] automation script language, [[scalar (computing)|scalar]] variables in the [[Perl]] language (see [[sigil (computer programming)]]), and global variables in the [[Ruby (programming language)|Ruby]] language. In Perl programming this includes scalar elements of [[Array data structure|arrays]] {{code|2=perl|$array[7]}} and [[Hash table#Associative arrays|hashes]] {{code|2=perl|$hash{foo} }}.
* {{code|$}} is prefixed to names to define [[variable (mathematics)|variables]] in the [[PHP]] language and the [[AutoIt]] automation script language, [[scalar (computing)|scalar]] variables in the [[Perl]] language (see [[sigil (computer programming)]]), and global variables in the [[Ruby (programming language)|Ruby]] language. In Perl programming this includes scalar elements of [[Array data structure|arrays]] {{code|2=perl|$array[7]}} and [[Hash table#Associative arrays|hashes]] {{code|2=perl|$hash{foo} }}.
* In [[Unix shell]]s, and later in other programming languages, {{code|$}} introduces an expression that should be evaluated to yield text. Languages that have adopted this convention include [[Perl]], [[JavaScript]], [[C#]], [[Scala (programming language)|Scala]], [[Groovy (programming language)|Groovy]] and [[Kotlin (programming language)|Kotlin]]. Other languages, including [[Java (programming language)|Java]] and [[Python (programming language)|Python]], use it to mark the place where the result of an expression elsewhere should be inserted into text.
* In most [[shell script]]ing languages, {{code|$}} is used to indicate the insertion into strings of [[environment variable]]s, special variables, input data fields, previous commands, arithmetic computations, and special characters, and for performing translation of localised strings. In the shell script languages of [[CP/M]], [[DOS]], and several [[Unix-like]] systems, it is used to insert variable information (such as the current [[working directory]], [[user name]], or sequential command number) in the [[Command-line interface#Command prompt|command prompt]].
* {{code|$}} is used for defining hexadecimal constants in [[Pascal (programming language)|Pascal]]-like languages such as [[Delphi (programming language)|Delphi]], and in some variants of [[assembly language]].
* {{code|$}} is used for defining hexadecimal constants in [[Pascal (programming language)|Pascal]]-like languages such as [[Delphi (programming language)|Delphi]], and in some variants of [[assembly language]], most notably, in the Motorola 6800 and 68000, and MOS Technology 6502 assembly languages.
* {{code|$}} is used in the [[ALGOL 68]] language to delimit [[ALGOL 68#formatted transput|transput format]] regions.
* {{code|$}} is used in the [[ALGOL 68]] language to delimit [[ALGOL 68#formatted transput|transput format]] regions.
* {{code|$}} is used in the [[TeX]] [[typesetting]] language to delimit mathematical regions.
* {{code|$}} is used in the [[TeX]] [[typesetting]] language to delimit mathematical regions.
Line 129: Line 128:
* In [[Haskell (programming language)|Haskell]], {{code|$}} is used as a function application operator.
* In [[Haskell (programming language)|Haskell]], {{code|$}} is used as a function application operator.
* In an [[AutoHotkey]] script, a hotkey declared with {{code|$}} is not triggered by a 'Send' command elsewhere in the script.
* In an [[AutoHotkey]] script, a hotkey declared with {{code|$}} is not triggered by a 'Send' command elsewhere in the script.
* The [[jQuery]] library defines {{code|$}} as its main symbol, primarily as a function that queries a web page for one or more [[HTML element]]s, but also with other utilities attached to it as properties like {{code|$.ajax}}. The [[Prototype.js]] library defines it similarly for querying.
* In [[JavaScript]] from ES6 onward it is used inside template literals to insert the value of a variable. For example, if {{code|2=javascript|1=var word = "such"}} then {{code|2=javascript|`as ${word}`}} would equal {{code|'as such'}}.
* In several [[JavaScript]] frameworks such as [[Prototype.js]] and [[jQuery]], {{code|$}} is a common [[utility class]], and is often referred to as ''the buck''.{{Citation needed|date=June 2020}} Otherwise, it's a character allowed in identifiers.
* In [[C Sharp (programming language)|C#]], {{code|$}} marks a string literal as an [[String interpolation|interpolated string]].
* 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-independent specification|language-agnostic]], as it will work with C#, [[VB.NET]], or any CLR supported language.
* 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-independent specification|language-agnostic]], as it will work with C#, [[VB.NET]], or any CLR supported language.
* In [[Erlang (programming language)|Erlang]], the dollar sign precedes character literals. The dollar sign as a character can be written {{code|$$}}.
* In [[Erlang (programming language)|Erlang]], the dollar sign precedes character literals. The dollar sign as a character can be written {{code|$$}}.
Line 142: Line 139:
* In [[Sass (stylesheet language)|Sass]], the {{code|$}} sign is prefixed to define a variable.
* In [[Sass (stylesheet language)|Sass]], the {{code|$}} sign is prefixed to define a variable.
* In [[Svelte]], the {{code|$}} sign can be used to mark [[Reactive programming|reactive]] statements.
* In [[Svelte]], the {{code|$}} sign can be used to mark [[Reactive programming|reactive]] statements.
* In [[python (programming language)|Python]], although you'll not come across the {{code|$}} sign operator when learning about operators in Python, you can use the {{code|$}} sign to format strings using the string template class.


===Operating systems===
===Operating systems===
* In [[CP/M]] and subsequently in all versions of [[DOS]] ([[86-DOS]], [[MS-DOS]], [[PC DOS]], more) and derivatives, {{code|$}} is used as a string terminator ({{code|Int 21h}} with {{code|1=AH=09h}}).
* In [[CP/M]] and subsequently in all versions of [[DOS]] ([[86-DOS]], [[MS-DOS]], [[PC DOS]], more) and derivatives, {{code|$}} marks the end of text displayed with system function 9. CP/M developer [[Gary Kildall]] never explained the choice and once pointedly remarked that he knew the reason while [[Bill Gates]] did not.<ref>{{cite book|last=Kildall|first=Gary|title=Computer Connections}}</ref> Prior uses of {{code|$}} for the "end of line" or "end of text" include [[JOVIAL]], [[CMS-2]], the [[QED (text editor)|QED editor]] and [[DECsystem-10]] (a known influence on CP/M), which displayed the character to confirm that the user pressed the [[escape key]] to complete a line of input.
* In [[Microsoft Windows]], {{code|$}} is appended to the share name to hide a shared folder or resource. For example, {{code|\\server\share}} will be visible to other computers on a network, while {{code|\\server\share$}} 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 share]]s are hidden in this way.
* In [[Microsoft Windows]], {{code|$}} is appended to the share name to hide a shared folder or resource. For example, {{code|\\server\share}} will be visible to other computers on a network, while {{code|\\server\share$}} 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 share]]s are hidden in this way.
* In the [[LDAP]] directory access protocol, {{code|$}} is used as a line separator in various standard entry attributes such as postalAddress.
* In the [[LDAP]] directory access protocol, {{code|$}} is used as a line separator in various standard entry attributes such as <code>postalAddress</code>.
* In the [[UNIVAC EXEC 8]] operating system, {{code|$}} 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., {{code|TPF$}}, {{code|NAME$}}, etc.)
* In the [[UNIVAC EXEC 8]] operating system, {{code|$}} 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., {{code|TPF$}}, {{code|NAME$}}, etc.)
* In [[RISC OS]], {{code|$}} is used in system variables to separate the application name from the variables specific to that application. For example <code>Draw$Dir</code> specifies the directory where the <code>!Draw</code> application is located. It is also used to refer to the [[root directory]] of a [[file system]].
* In [[RISC OS]], {{code|$}} is used in system variables to separate the application name from the variables specific to that application. For example <code>Draw$Dir</code> specifies the directory where the <code>!Draw</code> application is located. It is also used to refer to the [[root directory]] of a [[file system]].
Line 157: Line 153:


==Other uses==
==Other uses==
The symbol is sometimes used derisively, in place of the letter S, to indicate greed or excess money such as in "[[Microsoft|Micro$oft]]", "[[Disney|Di$ney]]", "[[Chelsea FC|Chel$ea]]" and "[[Greater Western Sydney Giants|GW$]]"; or supposed overt Americanisation as in "[[Sky UK|$ky]]". The dollar sign is also used intentionally to stylize names such as [[ASAP Rocky|A$AP Rocky]], [[Kesha|Ke$ha]], and [[Ty Dolla Sign|Ty Dolla $ign]] or words such as '''{{nowrap|¥€$}}'''. In 1872, [[Ambrose Bierce]] referred to California governor [[Leland Stanford]] as $tealand Landford.<ref>{{cite book|title=Ambrose Bierce: Alone in Bad Company|author=Roy Morris|publisher=Oxford University Press|date=1995|page=176|isbn=9780195126280}}</ref>
The symbol is sometimes used derisively, in place of the letter S, to indicate greed or excess money such as in "[[Microsoft|Micro$oft]]", "[[Disney|Di$ney]]", "[[Chelsea FC|Chel$ea]]" and "[[Greater Western Sydney Giants|GW$]]"; or supposed overt Americanisation as in "[[Sky UK|$ky]]". The dollar sign is also used intentionally to stylize names such as [[ASAP Rocky|A$AP Rocky]], [[Kesha|Ke$ha]], and [[Ty Dolla Sign|Ty Dolla $ign]] or words such as '''{{nowrap|¥€$}}'''. In 1872, [[Ambrose Bierce]] referred to California governor [[Leland Stanford]] as {{Proper name|$tealand Landford}}.<ref>{{cite book|title=Ambrose Bierce: Alone in Bad Company|author=Roy Morris|publisher=Oxford University Press|date=1995|page=176|isbn=9780195126280}}</ref>


In [[Scrabble]] notation, a dollar sign is placed after a word to indicate that it is valid according to the [[Official Tournament and Club Word List|North American word lists]], but not according to the British word lists.<ref>{{cite web|url=http://www.tucsonscrabble.com/articles/glossary.html|title=Scrabble Glossary|publisher=Tucson Scrabble Club|access-date=2012-02-06|archive-url=https://web.archive.org/web/20110830073348/http://www.tucsonscrabble.com/articles/glossary.html|archive-date=2011-08-30|url-status=dead}}</ref>
In [[Scrabble]] notation, a dollar sign is placed after a word to indicate that it is valid according to the [[Official Tournament and Club Word List|North American word lists]], but not according to the British word lists.<ref>{{cite web|url=http://www.tucsonscrabble.com/articles/glossary.html|title=Scrabble Glossary|publisher=Tucson Scrabble Club|access-date=2012-02-06|archive-url=https://web.archive.org/web/20110830073348/http://www.tucsonscrabble.com/articles/glossary.html|archive-date=2011-08-30|url-status=dead}}</ref>

Revision as of 00:03, 16 August 2024

$
Dollar sign
Other namesPeso sign
In UnicodeU+0024 $ DOLLAR SIGN (&dollar;)
Currency
CurrencyMany (see dollar, peso)
Graphical variants
Category

The dollar sign, also known as the peso sign, is a currency symbol consisting of a capital S crossed with one or two vertical strokes ($ or Dollar sign with two vertical lines depending on typeface), used to indicate the unit of various currencies around the world, including most currencies denominated "dollar" or "peso". The explicitly double-barred Dollar sign with two vertical lines sign is called cifrão in the Portuguese language.

The sign is also used in several compound currency symbols, such as the Brazilian real (R$), the Nicaraguan Córdoba (C$) and the United States dollar (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) 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 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, the early independent U.S., British America and Britain, referring to the Spanish American peso,[1][2] also known as "Spanish dollar" 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, 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"[3][4] but a variety of foreign coins were deemed to be legal tender until the Coinage Act of 1857 ended this status.[5]

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.[6] The $1 United States Note 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.[7]

Earlier history of the symbol

A piece of eight from the Potosí mint, showing the Pillars of Hercules with "S" ribbons, and two "PTSI" monograms at about 4 and 8 o'clock around the edge

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 "ps" for pesos. A study of late 18th- and early 19th-century manuscripts shows that the s gradually came to be written over the p, developing into a close equivalent to the "$" mark.[8][9][10][11][12] 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.[6][13] There are documents showing the common use of the two-stroke version in Portugal already by 1775.[14]
  • Another hypothesis derives the sign from a depiction of the Pillars of Hercules, a classical symbol for two sides of the Strait of Gibraltar, with a ribbon 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í mint in Bolivia, which operated from 1573 to 1825.[15][10] Indeed, one of the names used for Spanish dollars in Qing Dynasty China was 雙柱; Shuāngzhù; 'double-pillar'.[16]
  • A variant of the above theory claims that the sign comes from the mark of the mint at Potosí, 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 is a (single-stroked) "$" sign.[17]
Sample ledger with a sign for dollar from John Collins 1686
  • Yet another hypothesis notes that the English word "dollar" for the Spanish piece of eight originally came (through Dutch daalder) from Joachimsthaler or thaler, 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.[18] Alternatively, the symbol could have come from a snake and cross emblem on the thaler coins.[6]

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.[19][20][13]
  • In 1939, H. M. Larson suggested that the sign could derive from a combination of the Greek character "psi" (ψ) and "S".[21]
  • 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.[8] Henry Towne begins his classic 1886 essay on management with this theory.[22] This was also claimed by Ayn Rand 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.[23][6]
  • 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.[15]
  • 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 general Tariq Ibn Ziyad in his conquest of the Visigoth 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.[24]

Currencies that use the dollar sign

As symbol of the currency

The numerous currencies called "dollar" use the dollar sign to express money amounts. The sign is also generally used for the many currencies called "peso" (except the Philippine peso, which uses the symbol ""). 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. 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:

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,[25] e.g., "5$". (The cent symbol is written after the number in most countries that use it, e.g., "5¢".)

Use in the Portuguese Empire

Car for sale in Cape Verde, showing use of the cifrão as decimals separator

In Portugal, Brazil, and other parts of the Portuguese Empire, the two-stroke variant of the sign (with the name cifrão; (Portuguese pronunciation: [siˈfɾɐ̃w] ) was used as the thousands separator of amounts in the national currency, the real (plural "réis", abbreviated "Rs."): 123Dollar sign with two vertical lines500 meant "123500 réis". This usage is attested in 1775, but may be older by a century or more.[14] It is always written with two vertical lines: . It is the official sign of the Cape Verdean escudo (ISO 4217: CVE).

In 1911, Portugal redefined the national currency as the escudo, worth 1000 réis, and divided into 100 centavos; but the cifrão continued to be used as the decimal separator,[26] so that 123Dollar sign with two vertical lines50 meant 123.50 escudos or 123 escudos and 50 centavos. This usage ended in 2002 when the country switched to the euro. (A similar scheme to use a letter symbol instead of a decimal point is used by the RKM code in electrical engineering since 1952.)

Cape Verde, 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 (1958–1975), Portuguese India (1958–1961), Angola (1914–1928 and 1958–1977), Mozambique (1914–1980), Portuguese Guinea (1914–1975), and São Tomé and Príncipe (1914–1977); all using the cifrão as decimals separator.[citation needed]

Brazil 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 "Cr$", so one would write Cr$13,50 for 13 cruzeiros and 50 centavos.[27]

The cifrão was formerly used by the Portuguese escudo (ISO: PTE) before its replacement by the euro and by the Portuguese Timor escudo (ISO: TPE) before its replacement by the Indonesian rupiah and the US dollar.[28] In Portuguese and Cape Verdean usage, the cifrão is placed as a decimal point between the escudo and centavo values.[29] The name originates in the Arabic sifr (‏صِفْر‎), meaning 'zero'.[30]

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, 7Dollar sign with two vertical lines50 meant 7 đồng and 50 xu.

One stroke vs. two strokes

Double-barred dollar or Cifrão sign

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.[26]

However, such usage is not standardized, and the Unicode specification considers the two versions as graphic variants of the same symbol—a typeface design choice.[31] Computer and typewriter keyboards usually have a single key for that sign, and many character encodings (including ASCII and Unicode) 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 fonts 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-era advertisement depicts the two-stroked symbol as a snake.[13]) 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 sets, and thus has been appropriated for many purposes unrelated to money in programming languages and command languages.

Encoding

The dollar sign "$" has Unicode code point U+0024 (inherited from ASCII via Latin-1).[31]

  • U+0024 $ DOLLAR SIGN (&dollar;)[a]

There are no separate encodings for one- and two-line variants. The choice is typeface-dependent, they are allographs. 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. 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.

  • U+FE69 SMALL DOLLAR SIGN
  • U+FF04 FULLWIDTH DOLLAR SIGN
  • U+1F4B2 💲 HEAVY DOLLAR SIGN

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. As of 2019, the Unicode standard considers the distinction between one- and two-bar dollar signs a stylistic distinction between fonts, and has no separate code point for the cifrão. The symbol is not in the October 2019 "pipeline",[34] though it has been requested formally.[26]

Among others, the following fonts display a double-bar dollar sign for code point 0024:[citation needed] regular-weight Baskerville, Big Caslon, Bodoni MT, Garamond: ($)

In LaTeX, with the textcomp package installed, the cifrão (Dollar sign with two vertical lines) can be input using the command \textdollaroldstyle. However, because of font substitution and the lack of a dedicated code point, the author of an electronic document who uses one of these fonts intending to represent a cifrão 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.[29][35] Where there is any risk of misunderstanding, the ISO 4217 three-letter acronym is used.

Programming languages

  • In BASIC, $ is appended to a variable name to define that variable’s data type as a character string, 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 language (see sigil (computer programming)), and global variables in the Ruby language. In Perl programming this includes scalar elements of arrays $array[7] and hashes $hash{foo}.
  • In Unix shells, and later in other programming languages, $ introduces an expression that should be evaluated to yield text. Languages that have adopted this convention include Perl, JavaScript, C#, Scala, Groovy and Kotlin. Other languages, including Java 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 Pascal-like languages such as Delphi, and in some variants of assembly language, most notably, in the Motorola 6800 and 68000, and MOS Technology 6502 assembly languages.
  • $ is used in the ALGOL 68 language to delimit transput format regions.
  • $ is used in the TeX typesetting 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, Some$Name refers to the same thing as 'SomeName'.
  • In Haskell, $ 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 elements, but also with other utilities attached to it as properties like $.ajax. 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 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 CURRENCY= or CURRENCY SIGN clause is specified, many other symbols can be used.
  • In some assembly languages, 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 and subsequently in all versions of DOS (86-DOS, MS-DOS, PC DOS, more) and derivatives, $ marks the end of text displayed with system function 9. CP/M developer Gary Kildall never explained the choice and once pointedly remarked that he knew the reason while Bill Gates did not.[36] 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 to complete a line of input.
  • In Microsoft Windows, $ is appended to the share name to hide a shared folder or resource. For example, \\server\share will be visible to other computers on a network, while \\server\share$ 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 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., TPF$, NAME$, etc.)
  • In RISC OS, $ 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 of a file system.

Applications

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, Ke$ha, and Ty Dolla $ign or words such as ¥€$. In 1872, Ambrose Bierce referred to California governor Leland Stanford as $tealand Landford.[38]

In Scrabble 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.[39]

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 1 $ is the threshold of prompt criticality, which means a nuclear excursion or explosion.[40][41]

See also

Explanatory notes

  1. ^ As of April 2022, HTML5 is the only version of HTML that has a named entity for the dollar sign.[32][33]

References

Citations

  1. ^ Kinnaird, Lawrence (July 1976). "The Western Fringe of Revolution". The Western Historical Quarterly. 7 (3): 259. doi:10.2307/967081. JSTOR 967081.
  2. ^ Popular Science (February 1930). "Origin of Dollar Sign is Traced to Mexico". Popular Science: 59. ISSN 0161-7370.
  3. ^ "Section 9 of the Coinage Act of 1792". Memory.loc.gov. Archived from the original on 29 July 2020. Retrieved 24 August 2010.
  4. ^ Meredith, Stephanie (6 April 2017). "Coinage Act of April 2, 1792 | U.S. Mint". United States Mint. p. 3. Retrieved 12 August 2024.
  5. ^ Martin, David A. (1977). "The Changing Role of Foreign Money in the United States, 1782-1857". The Journal of Economic History. 37 (4): 1009. ISSN 0022-0507.
  6. ^ a b c d Hephzibah Anderson (2019): "The curious origins of the dollar symbol Archived 12 August 2021 at the Wayback Machine". Online article at the BBC website, dated 29 May 2019. Accessed on 2021-08-12.
  7. ^ Reverse of $1 United States Note (Greenback), series of 1869
  8. ^ a b Cajori, Florian (1993) [1929]. A History of Mathematical Notations. Vol. 2. Courier Corporation. pp. 15–29. ISBN 9780486677668.
  9. ^ Aiton, Arthur S.; Wheeler, Benjamin W. (May 1931). "The First American Mint". The Hispanic American Historical Review. 11 (2): 198. doi:10.1215/00182168-11.2.198. JSTOR 2506275.
  10. ^ a b Nussbaum, Arthur (1957). A History of the Dollar. New York: Columbia University Press. p. 56. The foreign coins remained in circulation [in the United States], and the more important among them, especially the Spanish (including the Mexican) dollars, were declared by Congress on February 9, 1793, to be legal tender. The dollar sign, $, is connected with the peso, contrary to popular belief, which considers it to be an abbreviation of 'U.S.' The two parallel lines represented one of the many abbreviations of 'P,' and the 'S' indicated the plural. The abbreviation '$.' was also used for the peso, and is still used in Argentina.
  11. ^ Riesco Terrero, Ángel (1983). Diccionario de abreviaturas hispanas de los siglos XIII al XVIII: Con un apendice de expresiones y formulas juridico-diplomaticas de uso corriente. Salamanca: Imprenta Varona. p. 350. ISBN 84-300-9090-8.
  12. ^ Bureau of Engraving and Printing. "What is the origin of the $ sign?". Resources: FAQs. Archived from the original on 9 April 2016. Retrieved 8 April 2016.
  13. ^ a b c Joshua D. Rothman (2018): "The Curious Origins of the Dollar Sign Archived 12 August 2021 at the Wayback Machine" Online article on the We're History website, dated 2018-04-01. Accessed on 2021-08-12.
  14. ^ a b João Joseph Du Beux (1775): Receipt of 270$000 Rs. Archived 12 August 2021 at the Wayback Machine 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 270Dollar sign with two vertical lines000 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.
  15. ^ a b Seijas, Tatiana and Jake Frederick (2017). Spanish Dollars and Sister Republics: The Money That Made Mexico and the United States. Lanham: Rowman & Littlefield. pp. 3–4. ISBN 9781538100462.
  16. ^ Ulrich Theobald (2016): "Qing Period Money: Foreign Silver 'Dollars' Archived 9 April 2021 at the Wayback Machine". Online article in the website ChinaKnowledge.de - An Encyclopaedia on Chinese History, Literature and Art, dated Apr 13, 2016. Accessed on 2021-08-14.
  17. ^ Sandra Choron and Harry Choron (2011): Money Everything You Never Knew About Your Favorite Thing to Find, Save, Spend & Covet Archived 5 April 2023 at the Wayback Machine page 68. ISBN 9781452105598
  18. ^ Florence Edler de Roover. Concerning the Ancestry of the Dollar Sign. - Bulletin of the Business Historical Society. Vol. 19, No. 2 (Apr., 1945), pp. 63-64 Archived 26 September 2018 at the Wayback Machine
  19. ^ James, James Alton (1970) [1937]. Robert Morris: The Life and Times of an Unknown Patriot. Freeport: Books for Libraries Press. p. 356. ISBN 978-0-8369-5527-9.
  20. ^ James, James Alton (1929). "'Robert Morris, Financier of the Revolution in the West'". The Mississippi Valley Historical Review.
  21. ^ Larson, Henrietta M. (October 1939). "Note on Our Dollar Sign". Bulletin of the Business Historical Society. 13 (4): 57–58. doi:10.2307/3111350. JSTOR 3111350.
  22. ^ Towne, Henry R. (1886). "Engineer as an Economist". in Transactions of the American Society of Mechanical Engineers, New York City: American Society of Mechanical Engineers.
  23. ^ (2018): "Where did the dollar sign come from? Archived 12 August 2021 at the Wayback Machine" Online article of the History channel website, dated 2018-08-22. Accessed on 2021-08-12.
  24. ^ (2015): "Origem do Cifrão". Note on the website of the Casa da Moeda do Brasil (Brazilian Mint). Accessed on 2021-08-12.
  25. ^ "Banque de dépannage linguistique - Somme d'argent". Office québécois de la langue française. Archived from the original on 29 September 2022. Retrieved 31 October 2022.
  26. ^ a b c Eduardo Marín Silva (22 July 2019). "Currency signs missing in Unicode" (PDF). Unicode Consortium. Archived (PDF) from the original on 31 August 2021. Retrieved 12 August 2021.
  27. ^ (1960): Price "Cr$ 15,00" on the front cover Archived 14 August 2021 at the Wayback Machine of the 1960-05-07 issue of O Cruzeiro magazine, reproduced on the Muzeez website on 2016-12-105. Accessed on 2021-08-14.
  28. ^ Lisbon-tourist-guide.com. "Portuguese Escudo Archived 2 October 2022 at the Wayback Machine." 2008.
  29. ^ a b Banco de Cabo Verde. "Moedas Archived 2011-01-22 at the Wayback Machine." Accessed 25 Feb 2011.
  30. ^ Casa da Moeda. "Origem do Cifrão" (in Portuguese). Casadamoeda.gov.br. Archived from the original on 12 March 2018. Retrieved 11 March 2018.
  31. ^ a b "C0 Controls and Basic Latin | Range: 0000–007F" (PDF). The Unicode Standard, Version 15.1. Unicode Consortium.
  32. ^ "24 Character entity references in HTML 4". www.w3.org. Archived from the original on 1 April 2018. Retrieved 7 April 2018. The following sections present the complete lists of character entity references
  33. ^ "8.5 Named character references". Archived from the original on 5 August 2017. Retrieved 7 April 2018. dollar;   U+00024   $
  34. ^ "Proposed New Characters: The Pipeline". Unicode Consortium. 11 October 2019. Archived from the original on 31 March 2017. Retrieved 26 December 2019.
  35. ^ Banco Central do Brasil. "Currency table. Archived 14 May 2017 at the Wayback Machine" Accessed 24 Feb 2011.
  36. ^ Kildall, Gary. Computer Connections.
  37. ^ "Relative & Absolute Cell References in Excel". Archived from the original on 17 March 2015. Retrieved 23 April 2015.
  38. ^ Roy Morris (1995). Ambrose Bierce: Alone in Bad Company. Oxford University Press. p. 176. ISBN 9780195126280.
  39. ^ "Scrabble Glossary". Tucson Scrabble Club. Archived from the original on 30 August 2011. Retrieved 6 February 2012.
  40. ^ Weinberg, Alvin M.; Wigner, Eugene P. (1958). The Physical Theory of Neutron Chain Reactors. Chicago: University of Chicago Press. p. 595.
  41. ^ "DOE Fundamentals: Nuclear Physics and Reactor Theory: Module 4: Reactor Theory (Reactor Operations)" (PDF). U. S. Department of Energy. n.d. p. 16. Archived (PDF) from the original on 27 May 2022. Retrieved 25 July 2022.

General and cited sources