![]() |
$ | |
---|---|
Dollar sign | |
Other names | peso sign |
In Unicode | U+0024 $ DOLLAR SIGN ($) |
Currency | |
Currency | many (see dollar, peso) |
Graphical variants | |
![]() |
The dollar sign, also known as peso sign, is a symbol consisting of a capital "S" crossed with one or two vertical strokes ($ or ), used to indicate the unit of various currencies around the world, including most currencies denominated "peso" and "dollar". The sign is also used as an element of several compound currency symbols, such as the Brazilian real (R$) and the Nicaraguan córdoba (C$).
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.
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".
The symbol appears in Spanish American, early independent U.S. American, British American and other British business correspondence in the 1770s, referring to the Spanish American peso,[1][2] also known as "Spanish dollar" or "piece of eight" in the 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] but continued to use a variety of foreign coins until the Coinage Act of 1857 declared them illegal.[4][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 symbol consisting of a "U" with the right bar overlapping an "S", as well as the double-stroke dollar sign in the legal warning against forgery.[7]
It is still uncertain, however, how the dollar sign came to represent the Spanish American peso. There are currently several competing hypotheses:
The following theories seem to have been discred or contradicted by documentary evidence:
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 "₱").
The dollar sign, alone or in combination with other glyphs, is or was used to denote several currencies with other names, including:
In the United States, Mexico, Australia, Argentina, New Zealand, Hong Kong, Pacific Island nations, and English-speaking Canada, the sign is written before the number, even though the corresponding word is written or pronounced after it. "Five dollars" or "cinco pesos" is written and printed as "$5". (On the other hand, the cent symbol in many of those countries is written after the number, as in "5¢"). In French-speaking Canada, exceptionally, the dollar symbol usually appears after the number[citation needed], as in "5$".
In Portugal, Brazil, and other parts of the Portuguese Empire, the two-stroke variant of the sign (with the name cifrão) was used as the thousands separator of amounts in the national currency, the real (plural "réis", abbreviated "Rs."): 123$500 meant "123500 réis". This usage is attested in 1775, but may be older by a century or more.[13]
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,[24] so that 123$50 meant 123.50 escudos or 123 escudos and 50 centavos. This usage ended in 2002 when the country switched to the euro.
Cape Verde, a Portuguese colony since the late 1400s, 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); presumably 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 "Cr $", so one would write Cr$13,50 for 13 cruzeiros and 50 centavos.[25]
Some virtual world and gaming platforms have used the $ symbol to refer to their own virtual currencies, for example:
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.[24]
However, such usage is not standardized, and furthermore the two versions are generally considered mere 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 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. Should that ambiguity be significant, one may use explicit abbreviations (like "US$" or "$NZ"), or ISO 4217 three-letter currency codes (such as USD and MXN) to distinguish different currencies that use the symbol.
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.[18]) The two-stroke version seems to be generally less popular today, though used in some "old-style" fonts like Baskerville.
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.
The dollar sign "$" has Unicode code point U+0024 (inherited from ASCII via Latin-1).
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.
However, for usage as the special character in various computing applications (see following sections), U+0024 is typically the only code that is recognized.
$
was used for defining string variables in older versions of the BASIC language, e.g. CHR$
($
was often pronounced "string" instead of "dollar" in this use).$
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}
.$
is used to indicate the insertion into strings of environment variables, 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 prompt.$
is used for defining hexadecimal constants in Pascal-like languages such as Delphi, and in some variants of assembly language.$
is used in the ALGOL 68 language to delimit transput format regions.$
is used in the TeX typesetting language to delimit mathematical regions.$
could be used as an alternative to a quotation mark for delimiting strings.$
can be used to put a visible separation between words in compound identifiers. For example, Some$Name
refers to the same thing as 'SomeName'.$
is used as a function application operator.$
is not triggered by a 'Send' command elsewhere in the script.$
is a common utility class, and is often referred to as the buck.[citation needed]var word = "such"
then 'as ${word}'
would equal 'as such'
$
marks a string literal as an interpolated string.$$
.$
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.$
sign is used to represent registers.$
sign, when used as an address, meant the address of the instruction in which it appeared.$
sign is used as a statement terminator.$
sign is used as a subsetting operator.$
sign is used as a casting/padding/enumeration/conditional operator.$
sign is prefixed to define a variable.$
is used as a string terminator (Int 21h
with AH=09h
).$
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.$
is used as a line separator in various standard entry attributes such as postalAddress.$
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.)$
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.$
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 ors ed, ex, vi, pico, and derivatives.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.[29]
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.[30]
A dollar symbol is used as unit of reactivity for a nuclear reactor, 1 $ being the threshold of slow criticality, meaning a steady reaction rate, while 2 $ is the threshold of prompt criticality, which means a nuclear excursion or explosion.[31]
The dollar sign was used as a letter in the Turkmen alphabet from 1993 to 1999.
The dollar sign plays an important role in the plot of Ayn Rand's novel Atlas Shrugged, with the book's radical Free Market activists adopting it as their insignia.
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.
The following sections present the complete lists of character entity references
dollar; U+00024 $
Media related to Dollar sign at Wikimedia Commons