Dollar sign
The dollar sign or peso sign ($ or
$ | |
---|---|
Dollar sign | |
Other names | peso sign |
In Unicode | U+0024 $ DOLLAR SIGN (HTML $ · $ ) |
Currency | |
Currency | many (see dollar, peso) |
Graphical variants | |
Origin
There are several hypotheses about the origin of the dollar sign. It is first attested in Spanish American, American, Canadian, Mexican, 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 America, which provided the model for the currency that the United States adopted in 1792 and the larger coins of the new Spanish American republics, such as the Mexican peso, Peruvian real, and Bolivian sol coins. This explanation holds that the sign grew out of the Spanish and Spanish American scribal abbreviation "pˢ" for pesos. A study of late eighteenth- and early nineteenth-century manuscripts shows that the s gradually came to be written over the p, developing into a close equivalent to the "$" mark.[3][4][5][6][7] A variation of this hypothesis derives the sign from a combination of the Greek character "psi" (ψ) and "S".[8]
Pillars of Hercules
Another hypothesis holds that the sign is derived from the symbolic representation of the Pillars of Hercules. This representation can have either a banner separately around each pillar, or a banner curling between them, as in the Spanish coat of arms.
The symbol was adopted by Charles V and was part of his coat of arms representing Spain's American possessions. The symbol was later stamped on coins minted in gold and silver. The Spanish dollar depicted the pillars over two hemispheres and a small "S"-shaped ribbon around each. They were spread throughout America, Europe, and Asia. According to this theory, traders wrote signs that had this symbol, and this in turn developed into a simple S with two vertical bars.
With the Coinage Act of 1792, the United States Congress created the US dollar, defining it to have "the value of a Spanish milled dollar as the same is now current"[9] but continued to use a variety of foreign coins until the Coinage Act of 1857 declared them illegal.[10][11] These US dollar coins did not have any dollar symbol.
Mexico continued to use the Spanish dollar until after the Mexican War of Independence.
Drawn with two vertical lines
Several alternative hypotheses relate specifically to the dollar sign drawn with two vertical lines. A dollar sign with two vertical lines could have started off as a monogram of "USA" used on money bags issued by the United States Mint. The letters U and S superimposed resemble the historical double-stroke dollar sign
The $1 United States Note issued by the United States in 1869 included a symbol consisting of a partially overlapping U and S, with one of the bars of the U intersecting the S, as well as the double-stroke dollar sign in the legal warning against forgery.[14] Another hypothesis is that it is derived from the symbol used on a German Thaler. A similar symbol of superimposing S and I or J was used to denote the German Joachimsthaler which appeared in the 1686 edition of An Introduction to Merchants' Accounts by John Collins.[15]
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).
There are no separate characters for one- and two-line variants. This is typeface-dependent.
There are also 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 (HTML
﹩
) - U+FF04 $ FULLWIDTH DOLLAR SIGN (HTML
$
) - U+1F4B2 💲 HEAVY DOLLAR SIGN (HTML
💲
)
However, for usage as the special character in various computing applications (see following sections), U+0024 is typically the only code that is recognized.
Programming languages
- $ was used for defining string variables in older versions of the BASIC language, eg. CHR$ ("$" was often pronounced "string" instead of "dollar" in this use).
- $ is used for defining hexadecimal constants in Pascal-like languages such as Delphi, and in some variants of assembly language.
- $ 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 most shell scripting languages, $ is used for interpolating (substitution of) environment variables, special variables, arithmetic computations, and special characters, and for performing translation of localised strings. Christopher Stratchey's GPM, the inspiration for the Multics shell, used the non-ASCII symbol § for macro expansion.
- $ 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.
- In several JavaScript frameworks such as Prototype.js and jQuery, $ is a common utility class, and is often referred to as the buck.
- In JavaScript from ES6 onward it is used inside template literals to insert the value of a variable. For example, if var word = "such" then `as ${word}` would equal 'as such'
- In C#, $ marks a string literal as an 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-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 (programming language), 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.
Operating systems
- In CP/M and subsequently in all versions of DOS (86-DOS, MS-DOS, PC DOS, more) and derivatives, $ is used as a string terminator (Int 21h with AH=09h).
- $ is used by the
prompt
command to insert special sequences into the DOS command prompt string.
- $ is used by the
- 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 Unix-like systems the $ is often part of the command prompt, depending on the user's shell and environment settings. For example, the default environment settings for the bash shell specify $ as part of the command prompt.
- The using history expansion
!$
(same as!!1$
and!-1$
) means the last argument of the previous command in bash:!-2$
expands to the last argument of the penultimate command,!5$
expands into the last argument of the fifth command and so on. For example:
- The using history expansion
> touch my_first_file
> echo "This is my file." > !$
- where
!$
expands intomy_first_file
.
- where
- 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
- Microsoft Excel[17] 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, and, as a result:
- $ signifies the end of a line or the file in text editors ed, ex, vi, pico, and derivatives.
Currencies that use the dollar or peso sign
In addition to those countries of the world that use dollars or pesos, a number of other countries use the $ symbol to denote their currencies, including:
- Nicaraguan córdoba (usually written as C$)
- Samoan tālā (a transliteration of the word dollar)
- Tongan paʻanga
An exception is the Philippine peso, whose sign is written as ₱.
The dollar sign is also still sometimes used to represent the Malaysian ringgit (which replaced the local dollar), though its official use to represent the currency has been discontinued since 1993.
Some currencies use the cifrão (
- Cape Verde escudo
- Portuguese escudo (defunct)
- Because the one bar version and the two bar version are allographs, any given font will contain one style or the other, not both. Furthermore, an electronic document written using one style may be viewed subsequently with the other style, because of font substitution. Consequently, when distinction is critical, it is best to use the three-letter acronym (USD, MXN etc, see ISO 4217).
However, in Argentina, the $ sign is always used for pesos, and if they want to indicate dollars, they always write U$S 5 or US$5 (5 US dollars).
In the United States, Mexico, Australia, Argentina, New Zealand, Hong Kong, Pacific Island nations, and English-speaking Canada, the dollar or peso symbol precedes the number. Five dollars or pesos is written and printed as $5, whereas five cents is written as 5¢. In French-speaking Canada, the dollar symbol usually appears after the number (5$).
In games and virtual worlds
Some virtual world and gaming platforms have used the $ symbol to refer to their own virtual currencies, for example:
- R$ – Robux (Roblox)
- S$ – Sansar Dollars (Sansar)
- L$ – Linden Dollars (Second Life)
Other uses
The symbol is sometimes used derisively to indicate greed or excess money such as in "Micro$oft", "George Luca$", "Lar$ Ulrich", "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 the California Governor as $tealand Landford.[18]
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.[19]
The dollar sign was used as a letter in Turkmen alphabet from 1993 to 1999.
See also
- Spanish dollar
- Cifrão
- Euro sign
- Indian rupee sign
- Pound sign
- Ruble sign
- Rupee sign
- Turkish lira sign
- Yen sign
- Yuan sign
- Won sign
Notes
- Kinnaird, Lawrence (July 1976). "The Western Fringe of Revolution". The Western Historical Quarterly. 7 (3): 259. JSTOR 967081.
- Popular Science (February 1930). "Origin of Dollar Sign is Traced to Mexico". Popular Science: 59. ISSN 0161-7370.
- Cajori, Florian (1993) [1929]. A History of Mathematical Notations. 2. pp. 15–29.
- Aiton, Arthur S.; Wheeler, Benjamin W. (May 1931). "The First American Mint". The Hispanic American Historical Review. 11 (2): 198. JSTOR 2506275.
- 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.
- 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.
- Bureau of Engraving and Printing. "What is the origin of the $ sign?". Resources: FAQs. Retrieved 2016-04-08.
- Larson, Henrietta M. (October 1939). "Note on Our Dollar Sign". Bulletin of the Business Historical Society. 13 (4): 57–58. JSTOR 3111350.
- "Section 9 of the Coinage Act of 1792". Memory.loc.gov. Retrieved August 24, 2010.
- "Massachusetts Copyright Statute,(1783), p. 370".
- "Maryland Copyright Statute (1783)".
- 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.
- James, James Alton (1929). "'Robert Morris, Financier of the Revolution in the West'". The Mississippi Valley Historical Review.
- Reverse of $1 United States Note (Greenback), series of 1869
- 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
- HTML5 is the only version of HTML that has a named entity for the dollar sign, see https://www.w3.org/TR/html4/sgml/entities.html ("The following sections present the complete lists of character entity references.") and https://www.w3.org/TR/2014/CR-html5-20140731/syntax.html#named-character-references ("dollar;").
- http://web.pdx.edu/~stipakb/CellRefs.htm
- Roy Morris (1995). Ambrose Bierce: Alone in Bad Company. Oxford University Press. p. 176. ISBN 9780195126280.
- "Scrabble Glossary". Tucson Scrabble Club. Archived from the original on 2011-08-30. Retrieved 2012-02-06.
References
- Cajori, Florian (1993). A History of Mathematical Notations (Reprint ed.). New York: Dover. ISBN 0-486-67766-4. Contains section on the history of the dollar sign, with much documentary evidence supporting the "pesos" hypothesis.
- Cuhaj, George (2009). Standard Catalog of United States Paper Money (28th ed.). Krause Publications. ISBN 0-89689-939-X.
- Ovason, David (2004-11-30). The Secret Symbols of the Dollar Bill (Reprint ed.). Harper Paperbacks. ISBN 0-06-053045-6.