Percent sign
{{Short description|Symbol for the fraction of a hundred}}
{{Redirect|%|the mod sign as used in modular arithmetic|Modular arithmetic}}
{{Use American English|date=March 2021}}
{{Use dmy dates|date=March 2021}}
{{Infobox symbol
|mark=%
|name=Percent sign
|unicode={{unichar|0025|percent sign|html=}}
|see also={{unichar|2030| nlink=per mille sign}}
{{unichar|2031|per ten thousand sign| nlink=basis point}} (Basis point)
|different from = {{unichar|2052|Commercial minus sign|nlink=Obelus#In mathematics}}
{{unichar|00F7| nlink=Division sign }}
}}
The percent sign {{char|%}} (sometimes per cent sign in British English) is the symbol used to indicate a percentage, a number or ratio as a fraction of 100. Related signs include the permille (per thousand) sign {{char|‰}} and the permyriad (per ten thousand) sign {{char|‱}} (also known as a basis point), which indicate that a number is divided by one thousand or ten thousand, respectively. Higher proportions use parts-per notation.
Correct style
= Form and spacing =
English style guides prescribe writing the percent sign following the number without any space between (e.g. 50%).{{#tag:ref|{{cite news| title = Guardian and Observer style guide: P| work = The Guardian| date = 30 April 2021| url = https://www.theguardian.com/guardian-observer-style-guide-p| access-date = 2023-03-16| archive-date = 28 December 2019| archive-url = https://web.archive.org/web/20191228192202/http://www.theguardian.com/guardian-observer-style-guide-p| url-status = live}}{{cite web| title = The Chicago Manual of Style| publisher = University of Chicago Press| year = 2003| url = http://www.chicagomanualofstyle.org/| access-date = 2007-01-05| archive-date = 5 January 2009| archive-url = https://web.archive.org/web/20090105172745/http://www.chicagomanualofstyle.org/| url-status = live}}Publication Manual of the American Psychological Association. 1994. Washington, DC: American Psychological Association, p. 114.Merriam-Webster's Manual for Writers and Editors. 1998. Springfield, MA: Merriam-Webster, p. 128.Jenkins, Jana et al. 2011. The IBM Style Guide: Conventions for Writers and Editors. Boston, MA: Pearson Education, p. 162.Covey, Stephen R. FranklinCovey Style Guide: For Business and Technical Communication. Salt Lake City, UT: FranklinCovey, p. 287.Dodd, Janet S. 1997. The ACS Style Guide: A Manual for Authors and Editors. Washington, DC: American Chemical Society, p. 264.|group="sources"}} However, the International System of Units and ISO 31-0 standard prescribe a space between the number and percent sign,{{cite web
| title = SI Brochure
| publisher = International Bureau of Weights and Measures
| year = 2006
| url = http://www.bipm.org/en/publications/si-brochure/section5-3-7.html
| access-date = 2016-05-05
| archive-date = 21 March 2019
| archive-url = https://web.archive.org/web/20190321011300/https://www.bipm.org/en/publications/si-brochure/section5-3-7.html
| url-status = live
| title = The International System of Units
| publisher = International Bureau of Weights and Measures
| year = 2006
| url = http://www.bipm.org/utils/common/pdf/si_brochure_8.pdf
| access-date = 2007-08-06
| archive-date = 13 March 2020
| archive-url = https://web.archive.org/web/20200313143915/https://www.bipm.org/utils/common/pdf/si_brochure_8.pdf
| url-status = live
| title = Quantities and units – Part 0: General principles
| publisher = International Organization for Standardization
| date = 1999-12-22
| url = http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=3621
| access-date = 2007-01-05
| archive-date = 29 May 2007
| archive-url = https://web.archive.org/web/20070529115226/http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=3621
| url-status = live
}} in line with the general practice of using a non-breaking space between a numerical value and its corresponding unit of measurement.
Other languages have other rules for spacing in front of the percent sign:
- In Czech and in Slovak, the percent sign is spaced with a non-breaking space if the number is used as a noun.{{cite web
| title = Internetová jazyková příručka
| publisher = Ústav pro jazyk český Akademie věd ČR
| year = 2014
| url = http://prirucka.ujc.cas.cz/?id=880
| access-date = 2014-11-24
| archive-date = 14 February 2015
| archive-url = https://web.archive.org/web/20150214110059/http://prirucka.ujc.cas.cz/?id=880
| url-status = live
}} In Czech, no space is inserted if the number is used as an adjective (e.g. "a 50% increase"),{{cite web
|title = Jazyková poradna ÚJČ AV ČR: FAQ
|publisher = Ústav pro jazyk český Akademie věd ČR
|year = 2002
|url = http://www.ujc.cas.cz/poradna/odpo.html#12st
|access-date = 2009-03-16
|url-status = dead
|archive-url = https://web.archive.org/web/20020419163402/http://www.ujc.cas.cz/poradna/odpo.html#12st
|archive-date = 2002-04-19
}} whereas Slovak uses a non-breaking space in this case as well.{{cite web
|title = Jazyková poradňa
|publisher = Petit Press, a.s.
|year = 2013
|url = http://www.ujc.cas.cz/poradna/odpo.html#12st
|access-date = 2019-10-26
|archive-url = https://web.archive.org/web/20090221135605/http://www.ujc.cas.cz/poradna/odpo.html#12st
|archive-date = 2009-02-21
|url-status = dead
}}
- In Croatian, the percent sign is spaced{{Cite web |title=Znak za postotak |url=http://pravopis.hr/pravilo/znak-za-postotak/85/ |website=Hrvatski pravopis. Institut za hrvatski jezik i jezikoslovlje |language=hr}} with a non-breaking space.
- In Finnish, the percent sign is always spaced, and a case suffix can be attached to it using the colon (e.g. 50 %:n kasvu 'an increase of 50%').{{cite web
| title = Kielikello 2/2006
| publisher = Kotimaisten kielten keskus
| website = kotus.fi
| year = 2006
| url = http://www.kielikello.fi/index.php?mid=2&pid=11&aid=1696
| access-date = 2015-06-30
| archive-date = 1 May 2015
| archive-url = https://web.archive.org/web/20150501222450/http://www.kielikello.fi/index.php?mid=2&pid=11&aid=1696
| url-status = live
}}
- In French, the percent sign must be spaced with a non-breaking space.{{cite book|title=Guide des principales règles typographiques|publisher=Université Joseph-Fourier|url=https://grenoble-sciences.ujf-grenoble.fr/sites/default/files/pdf/auteur/guidetypo.pdf|access-date=8 June 2022}}{{cite book |last=André |first=Jacques |author-link= |date= |title=Petites leçons de typographie |url=http://jacques-andre.fr/faqtypo/lessons.pdf |location=Rennes |publisher=Institut de recherche en informatique et systèmes aléatoires |page=34 |isbn= |access-date=8 June 2022 }}
- According to the Real Academia Española, in Spanish, the percent sign should be spaced now, despite the fact that it is not the linguistic norm.{{cite web
| title = El % se escribe separado de la cifra a la que acompaña
| publisher = Fundeu
| website = fundeu.es
| year = 2012
| url = https://www.fundeu.es/recomendacion/el-se-escribe-separado-de-la-cifra-a-la-que-acompana-802/
| access-date = 2021-11-24
| archive-date = 24 November 2021
| archive-url = https://web.archive.org/web/20211124144146/https://www.fundeu.es/recomendacion/el-se-escribe-separado-de-la-cifra-a-la-que-acompana-802/
| url-status = live
}} Despite that, in North American Spanish (Mexico and the US), several style guides and institutions either recommend the percent sign be written following the number without any space between or do so in their own publications in accordance with common usage in that region.{{cite web
| title = Normas particulares de estilo
| publisher = Colegio de México
| website = colmex.mx
| year = 2020
| url = https://estudiosdegenero.colmex.mx/index.php/eg/normas_estilo#:~:text=Porcentajes.,detr%C3%A1s%20de%20la%20%C3%BAltima%20cifra
| access-date = 2022-04-05
| archive-date = 10 May 2022
| archive-url = https://web.archive.org/web/20220510021038/https://estudiosdegenero.colmex.mx/index.php/eg/normas_estilo#:~:text=Porcentajes.,detr%C3%A1s%20de%20la%20%C3%BAltima%20cifra
| url-status = live
| title = ¿En un texto, es correcto usar el signo de porcentaje o tiene que escribirse por ciento?
| publisher = Academia Mexicana de la Lengua
| website = academia.org.mx
| year = 2020
| url = https://www.academia.org.mx/consultas/consultas-frecuentes/item/porcentaje
| access-date = 2022-04-05
| archive-date = 6 February 2023
| archive-url = https://web.archive.org/web/20230206061748/https://www.academia.org.mx/consultas/consultas-frecuentes/item/porcentaje
| url-status = live
}}
- In Russian, the percent sign is rarely spaced, contrary to the guidelines of the GOST 8.417-2002 state standard.
- In Chinese, the percent sign is almost never spaced, probably because Chinese does not use spaces to separate characters or words at all.{{Citation needed|date=January 2010}}
- According to the Swedish Language Council, the percent sign should be preceded by a space in Swedish, as all other units.
- In German, the space is prescribed by the regulatory body in the national standard DIN 5008.
- In Turkish and some other Turkic languages, the percent sign precedes rather than follows the number, without an intervening space.
- In Persian texts, the percent sign may either precede or follow the number, in either case without a space.
- In Arabic, the percent sign follows the number; as Arabic is written from right to left, this means that the percent sign is to the left of the number, usually without a space.
- In Hebrew, the percent sign is written to the right of the number, just as in English, without an intervening space. This is because numbers in Hebrew (which otherwise is written from right to left) are written from left to right, as in English.
- In Dutch, the official rule (NBN Z 01-002) is to place a space between the number and the sign (e.g. "een stijging van 50 %"), but most of the time, the space is missing (e.g. "een stijging van 50%").{{Cite web|title=procentteken (spatie)|url=https://www.vlaanderen.be/taaladvies/procentteken-spatie|access-date=2021-11-27|website=www.vlaanderen.be|language=nl}}
= Usage in text =
It is often recommended that the percent sign only be used in tables and other places with space restrictions. In running text, it should be spelled out as percent or per cent (often in newspapers). For example, not "Sales increased by 24% over 2006" but "Sales increased by 24 percent over 2006".{{cite web |url=http://www.aeaweb.org/aer/styleguide.html |title=American Economic Review: Style Guide |url-status=dead |archive-url=https://web.archive.org/web/20071225140441/http://www.aeaweb.org/aer/styleguide.html |archive-date=2007-12-25 }}{{Cite web |url=http://www.pharmacy.unc.edu/news/communications-office/style-guide |title=UNC Pharmacy style guide |access-date=16 October 2007 |archive-date=12 June 2007 |archive-url=https://web.archive.org/web/20070612101024/http://www.pharmacy.unc.edu/news/communications-office/style-guide |url-status=dead }}{{Cite web |url=http://www.colorado.edu/Publications/styleguide/numbers.html |title=University of Colorado style guide |access-date=2007-10-16 |archive-url=https://web.archive.org/web/20071102153519/http://www.colorado.edu/Publications/styleguide/numbers.html |archive-date=2007-11-02 |url-status=dead }}
Evolution
Prior to 1425, there is no known evidence of a special symbol being used for percentages. The Italian term per cento, "for a hundred", was used as well as several different abbreviations (e.g. "per 100", "p 100", "p cento"). Examples of this can be seen in the 1339 arithmetic text (author unknown) depicted below.{{sfnp|Smith|1898|loc=p. 437}} The letter p with its descender crossed by a horizontal or diagonal stroke (to indicate abbreviation) conventionally stood for per, por, par, or pur in Medieval and Renaissance palaeography.[http://inkunabeln.ub.uni-koeln.de/vdibProduction/handapparat/nachs_w/cappelli/capp317.html Letter p.] ({{Webarchive|url=https://web.archive.org/web/20090418131146/http://inkunabeln.ub.uni-koeln.de/vdibProduction/handapparat/nachs_w/cappelli/capp317.html |date=18 April 2009 }}) / Cappelli, Adriano: [http://inkunabeln.ub.uni-koeln.de/vdibProduction/handapparat/nachs_w/cappelli/cappelli.html Lexicon Abbreviaturarum] ({{Webarchive|url=https://web.archive.org/web/20150508180936/http://inkunabeln.ub.uni-koeln.de/vdibProduction/handapparat/nachs_w/cappelli/cappelli.html |date=8 May 2015 }}). 2. verb. Aufl. Leipzig 1928. Wörterbuch der Abkürzungen: pp. 256–257.
:File:Percent sign in 1339.png{{clear}}
At some point, a scribe used the abbreviation pc with a tiny loop or circle (depicting the ending -o used in Italian ordinals, as in {{lang|IT|primo}}, {{lang|IT|secondo}}; it is analogous to the English -th as in 25th). This appears in some additional pages of a 1425 text which were probably added around 1435.{{sfnp|Smith|1898|loc=pp. 439–440}}
:File:Percent sign in 1425.png{{clear}}
The pc with a loop eventually evolved into a horizontal fraction sign by 1650 (see below for an example in a 1684 text){{sfnp|Smith|1898|loc=p. 441}} and thereafter lost the per.{{sfnp|Smith|1898|loc=p. 440}}
:Image:Percent sign in 1648.png{{clear}}
In 1925, D. E. Smith wrote, "The solidus form (File:Percentsign in Poor Richard font.png) is modern."{{sfnp|Smith|1925|loc=Vol. 2, p. 250}}
Encodings
= Unicode =
The Unicode code points are:
- {{unichar
| 0025 | Percent sign}} (HTML %
, %
HTML5 is the only version of HTML that has a named entity for the percent 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 ("percnt;").),
- {{unichar|FF05|fullwidth percent sign|nlink=Halfwidth and fullwidth forms}}
- {{unichar|FE6A|small percent sign|nlink=Small Form Variants}}
- {{unichar|066A|ARABIC PERCENT SIGN|html=}}, which has the circles replaced by square dots set on edge, the shape of the digit 0 in Eastern Arabic numerals.
- {{unichar|332B|SQUARE PAASENTO}}, {{lang|ja|パーセント}} ({{Transliteration|ja|pāsento}}, from English "percent") in one square character.
= ASCII =
The ASCII code for the percent character is 37, or 0x25 in hexadecimal.
Other uses
= In computers =
Names for the percent sign include percent sign (in ITU-T), mod, grapes (in hacker jargon),{{citation needed|date=April 2019}} and the humorous double-oh-seven (in INTERCAL).
In computing, the percent character is also used for the modulo operation in programming languages that derive their syntax from the C programming language, which in turn acquired this usage from the earlier B.{{cite web |url=http://cm.bell-labs.com/cm/cs/who/dmr/kbman.html |title=Users' Reference to B |first=Ken |last=Thompson |year=1996 |url-status=dead |archive-url=https://web.archive.org/web/20060706005453/http://cm.bell-labs.com/cm/cs/who/dmr/kbman.html |archive-date=2006-07-06 }}
In the textual representation of URIs, a % immediately followed by a 2-digit hexadecimal number denotes an octet specifying (part of) a character that might otherwise not be allowed in URIs (see percent-encoding).
In SQL, the percent sign is a wildcard character in "LIKE" expressions, for example {{code|SELECT * FROM table WHERE fullname LIKE 'Lisa %'|sql}} will fetch all records whose names start with "{{mono|Lisa }}".
In TeX (and therefore also in LaTeX) and PostScript, and in GNU Octave and MATLAB,{{cite web|url=https://octave.org/doc/interpreter/Single-Line-Comments.html#Single-Line-Comments|publisher=GNU|title=2.7.1 Single Line Comments|access-date=20 July 2018}} a % denotes a line comment.
In BASIC, Visual Basic, ASP, and VBA a trailing % after a variable name marks it as an integer.
In ASP, the percent sign can be used to indicate the start and end of the ASP code {{code|<%...... %>}}
In Perl % is the sigil for hashes.
In many programming languages' string formatting operations (performed by functions such as printf
and scanf
), the percent sign denotes parts of the template string that will be replaced with arguments. (See printf format string.) In Python and Ruby the percent sign is also used as the string formatting operator.{{cite web|url=https://docs.python.org/2/library/stdtypes.html#string-formatting|title=Python 2 – String Formatting Operations|access-date=28 October 2015}}{{cite web|url=https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting|title=Python 3 – printf-style String Formatting|access-date=28 October 2015}}{{cite web|url=https://docs.ruby-lang.org/en/master/String.html#method-i-25|title=Ruby – String#%}}
In the command processors COMMAND.COM (DOS) and CMD.EXE (OS/2 and Windows), {{mono|%1, %2}},... stand for the first, second,... parameters of a batch file. %0 stands for the specification of the batch file itself as typed on the command line. The % sign is also used similarly in the FOR command.
%VAR1% represents the value of an environment variable named VAR1. Thus:
{{code|2=bat|1=set PATH=c:\;%PATH%}}
sets a new value for PATH, that being the old value preceded by "c:\;
".
Because these uses give the percent sign special meaning, the sequence %% (two percent signs) is used to represent a literal percent sign, so that:
{{code|2=bat|1=set PATH=c:\;%%PATH%%}}
would set PATH to the literal value "c:\;%PATH%
".
In the C Shell and Z shell, % is part of the default command prompt.
= In linguistics =
In linguistics, the percent sign is prepended to an example sentence or other string to show that it is judged well-formed (grammatical) by some speakers and ill-formed by others. This may be due to differences in dialect or even individual idiolects.{{Cite book | first=R. L. | last=Trask | author-link=Larry Trask | title=A Dictionary of Grammatical Terms in Linguistics | location=London | publisher=Routledge | year=1993 | isbn=0-415-08627-2 | page=203}}{{Cite book | first=David | last=Crystal | author-link=David Crystal | title=A Dictionary of Linguistics and Phonetics | edition=6th | location=Cambridge | publisher=Cambridge University Press | year=2008 | isbn=978-1-4051-5296-9 | page=355}} This use is similar to those of the asterisk to mark ill-formed strings, the question mark to mark strings where well-formedness is unclear, and the number sign to mark strings that are syntactically well-formed but semantically or pragmatically nonsensical.
See also
- Metacharacter
- {{unichar|2030|per mille sign|nlink=}},
- {{unichar|2031|per ten thousand sign|nlink=basis point}} (also known as basis point)
References
{{Reflist|group=sources|2}}
{{reflist}}
Sources
{{refbegin}}
- {{citation|last=Smith|first=D. E.|title=Rara Arithmetica: a catalogue of the arithmetics written before MDCI, with description of those in the library of George Arthur Plimpton of New York|year=1898|publisher=Ginn|location=Boston|url=https://archive.org/details/raraarithmeticac00smituoft}}
- {{citation|last=Smith|first=D. E.|title=History of Mathematics|year=1925|publisher=Ginn|location=Boston |volume=2 |url=https://archive.org/details/historyofmathema0000unse_u3l1/page/n3/mode/2up}}
{{refend}}
{{navbox punctuation}}
{{DEFAULTSORT:Percent Sign}}