Dollar sign
The dollar sign, also known as the peso sign, is a currency symbol consisting of a capital crossed with one or two vertical strokes, used to indicate the unit of various currencies around the world, including most currencies denominated "dollar" or "peso". The explicitly double-barred sign is called cifrão in the Portuguese language.
The sign is also used in several compound currency symbols, such as the Brazilian real and the United States dollar : 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 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
Recent history
The symbol appears in business correspondence in the 1770s from the West Indies referring to the Spanish American peso, also known as "Spanish dollar" or "piece of eight" in British America. The Spanish 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.file:US-$1-LT-1869-Fr-18.jpg|thumb|right|Reverse side of $1 United States note, 1869 series, showing monogram.
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 until the Coinage Act of 1857 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. 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 see picture.
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 among the very many latinate scribal abbreviations the dollar sign developed out of an abbreviation for the Spanish and Spanish-American 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. 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. 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, a classical symbol for two sides of the Strait of Gibraltar, with a ribbon wrapped around each pillar 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–1825. Indeed, one of the names used for Spanish dollars in Qing Dynasty China was p=Shuāngzhù.
- 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 superimposed. The core of this monogram is a '$' sign.
- Yet another hypothesis notes that the English word "dollar" for the Spanish piece of eight originally came 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. notes that such a symbol used for that dollar unit appears in the of An Introduction to Merchants' Accounts by John Collins printed at the end of Gerard de Malynes’ Lex Mercatoria and was also used for the mark in particular in the first half of the 19th century. Alternatively, the symbol could have come from a snake and cross emblem on the thaler coins.
Less likely theories
- James Alton James proposed that the symbol with two strokes was adapted from a 1778 design by financier Robert Morris, found in his letters to Pollock.
- Henrietta Larson suggested that the sign could derive from a combination of the Greek character "psi" () and 'S'.
- Another 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. Florian Cajori found this theory mentioned in 1876 letters to the journal Notes and Queries. R. Towne">R (programming language)">R. Towne begins his 1886 essay on management stating this theory. This was also claimed by Ayn Rand in her 1957 novel Atlas Shrugged; in Rand's conjecture is that the "US" monogram was imprinted on the money bags used by the United States Mint.
- 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 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.
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". 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 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 : ₢$, CR, Cr, NCr, etc.
- Brazilian real: R$
- Ethiopian birr : E$
- Macanese pataca: MOP$
- Nicaraguan córdoba: C$
- Samoan tālā : $
- Tongan paʻanga: T$
- Malaya and British Borneo dollar : $
- Malaysian ringgit : $, M$, M
- South Vietnamese đồng : $,
Prefix or suffix
Use in the Portuguese Empire
In Portugal, Brazil, and other parts of the Portuguese Empire, the two-stroke variant of the sign named cifrão has been used as the thousands separator in the national currency, the real. For instance, would be equivalent to. This usage is attested in 1775, but may be older by a century or more. The cifrão is always written with two vertical lines like, and is the official sign of the Cape Verdean escudo.In 1911, Portugal redefined the national currency as the escudo, worth, and divided into 100 centavos; but the cifrão continued to be used as the decimal separator, so that meant or 123 escudos and 50 centavos. This usage ended in 2002 when the country switched to the euro.
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, Portuguese India, Angola, Mozambique, Portuguese Guinea, and São Tomé and Príncipe ; all using the cifrão as decimals separator.
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, so one would write for 13 cruzeiros and 50 centavos.
The cifrão was formerly used by the Portuguese escudo before its replacement by the euro and by the Portuguese Timor escudo before its replacement by the Indonesian rupiah and the US dollar. In Portuguese and Cape Verdean usage, the cifrão is placed as a decimal point between the escudo and centavo values. The name originates in the Arabic ṣifr, 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 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 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 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. 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 ASCII and Unicode code point U+0024.Support for the two-line variant varies. 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", 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:
In LaTeX, with the package installed, the cifrão 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. Where there is any risk of misunderstanding, the ISO 4217 three-letter acronym is used.Japanese
The character is a squared word version of wikt:ドル.The character has been formerly repurposed as a symbol for dollars in Japan because of its visual similarity.
It was also read as doru
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 variableH$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, and global variables in the Ruby language. In Perl programming this includes scalar elements of arrays and hashes.
- 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 some variants of assembly language, in Pascal and in Pascal-like languages such as Free Pascal and Delphi.
- 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, 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. 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 Java, can appear inside a class name in a Java class file due to name mangling. For example, if a class
Outerhas an inner classInner, the compiled class file will be namedOuter$Inner.class. - 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 or 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 86-DOS and MS-DOS compatible operating systems, 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. Prior uses of for the "end of line" or "end of text" include JOVIAL, CMS-2, the QED editor and DECsystem-10, which displayed the character to confirm that the user pressed the escape key to complete a line of input.
- In Windows, 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 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 when no specific name is specified
- In RISC OS, is used in system variables to separate the application name from the variables specific to that application. For example
Draw$Dirspecifies the directory where the!Drawapplication is located. It is also used to refer to the root directory of a file system.Applications
- Excel 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, and POSIX and Perl regular expressions, as well as the end of a line or the file in text editors ed, ex, vi, pico, and derivatives.
Other uses
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.
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 Ş.
Explanatory notes
General and cited sources
- Contains section on the history of the dollar sign, with much documentary evidence supporting the "pesos" hypothesis.