(Translated by https://www.hiragana.jp/)
Percent sign: Difference between revisions - Wikipedia Jump to content

Percent sign: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision (vandalism) 475031425 by 72.39.3.34 (talk)
add variants
Line 1: Line 1:
{{Punctuation marks|%}}
{{Punctuation marks|%
|variant1=‰|caption1=Per mille
|variant2=‱|caption2=Per ten thousand}}

The '''percent sign''' ('''%''') is the symbol used to indicate a [[percentage]] (that the preceding number is divided by one hundred).
The '''percent sign''' ('''%''') is the symbol used to indicate a [[percentage]] (that the preceding number is divided by one hundred).


Line 61: Line 64:


[[Image:Percent sign in 1648.png|frame|center|alt=1684 arithmetic text|1684 arithmetic text in ''Rara Arithmetica'' pg. 441]]
[[Image:Percent sign in 1648.png|frame|center|alt=1684 arithmetic text|1684 arithmetic text in ''Rara Arithmetica'' pg. 441]]



In 1925 D.E. Smith wrote, "The [[Solidus (punctuation)|solidus]] form ([[File:Percentsign in Poor Richard font.png|20px|Poor Richard font]]) is modern."<ref>{{harvnb|Smith|1925|loc=Vol. 2, pg.250}} in Dover reprint of 1958, ISBN 0-486-20430-8</ref>
In 1925 D.E. Smith wrote, "The [[Solidus (punctuation)|solidus]] form ([[File:Percentsign in Poor Richard font.png|20px|Poor Richard font]]) is modern."<ref>{{harvnb|Smith|1925|loc=Vol. 2, pg.250}} in Dover reprint of 1958, ISBN 0-486-20430-8</ref>
Line 67: Line 69:
== Usage ==
== Usage ==
=== Encodings ===
=== Encodings ===
The Unicode code points are {{unichar|0025|percent sign|html=}},
The Unicode code points are
* {{unichar|0025|percent sign|html=}},
{{unichar|2030|per mille sign|html=}} and {{unichar|2031|per ten thousand sign|html=|note=a.k.a. basis point}}
* {{unichar|2030|per mille sign|html=}} and
* {{unichar|2031|per ten thousand sign|html=|note=a.k.a. basis point}}


There is also {{unichar|066A|ARABIC PERCENT SIGN|html=}}, which has the circles replaced by square dots set on edge.
There is also {{unichar|066A|ARABIC PERCENT SIGN|html=}}, which has the circles replaced by square dots set on edge.

Revision as of 23:09, 18 February 2012

The percent sign (%) is the symbol used to indicate a percentage (that the preceding number is divided by one hundred).

Related signs include the permille (per thousand) sign ‰ and the permyriad (per ten thousand) sign ‱ (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

Spacing

There is no consensus as to whether or not to include a space between the number and percent sign in English. Many authorities prescribe that there should be a space, whilst others advise against it. The brochure of the International System of Units declares in chapter 5: “a space separates the number and the symbol %”.[1][2] The ISO 31-0 standard also specifies a space.[3] This is in accordance with the general rule of adding a non-breaking space between a numerical value and its corresponding unit of measurement. However, style guides—such as the Chicago Manual of Style—commonly prescribe to write the number and percent sign without any space in between.[4]

In some languages, however, there are specific rules of spacing in front of the percent sign. In Czech, for example, the percent sign is spaced if the number is used as a noun, while no space is inserted if the number is used as an adjective (e.g. “a 50% increase”).[5] 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 %').[citation needed] In French, the percent sign is also always spaced because the percent is considered as a unit.[citation needed] In traditional Russian typography there is a set rule to space it by 3 pt but it is not that common in Russia today.[citation needed] 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] According to the Swedish Language Council, the percent sign should be preceded by a space in Swedish.

Usage in text

It is often recommended that the percent sign is only 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 rather "Sales increased by 24 percent over 2006".[6][7][8]

Evolution

Prior to 1425 there is no evidence of a special symbol being used for percentage. The Italian term per cento, "for a hundred", was used as well as several different abbreviations (e.g. "per 100", "p 100", "p cento", etc.). Examples of this can be seen in the 1339 arithmetic text (author unknown) depicted below.[9]

1339 arithmetic text
1339 arithmetic text in Rara Arithmetica pg. 437

At some point a scribe of some sort used the abbreviation "pc" with a tiny loop (small circle used in Italian numeration for primo, secondo, etc.) This appears in some additional pages of a 1425 text which were probably added around 1435.[10] This is shown below (source, Rara Arithmetica pg. 440).

1425 arithmetic text in Rara Arithmetica pg. 440

The "pc" with a loop eventually evolved a horizontal fraction sign by 1650 (see below for an example in a 1684 text[11]) and thereafter lost the "per".[12]

1684 arithmetic text
1684 arithmetic text in Rara Arithmetica pg. 441

In 1925 D.E. Smith wrote, "The solidus form (Poor Richard font) is modern."[13]

Usage

Encodings

The Unicode code points are

  • U+0025 % PERCENT SIGN (&percnt;),
  • U+2030 PER MILLE SIGN (&permil;) and
  • U+2031 PER TEN THOUSAND SIGN (&pertenk; · a.k.a. basis point)

There is also U+066A ٪ ARABIC PERCENT SIGN, which has the circles replaced by square dots set on edge.

The ASCII code for the percent character is 37, or 0x25 in hexadecimal.

In computers

Names for the percent sign include percent sign (in ITU-T), mod, grapes (in hacker jargon), 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.[14]

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 SELECT * FROM table WHERE fullname LIKE 'Lisa %' will fetch all records whose names start with "Lisa "

In TeX (and therefore also in LaTeX) and PostScript, a % denotes a line comment.

In BASIC, a trailing % after a variable name marks it as an integer.

In Perl % is the sigil for hashes.

In many programming languages' string formatting operations (performed by functions such as printf), the percent sign denotes parts of the template string that will be replaced with arguments. In Python (obsoleted in 3.0) and Ruby, the percent sign is also used as the string formatting operator.[15]

In the command processors COMMAND.COM (DOS) and CMD.EXE (OS/2 and Windows), %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:

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:

set PATH=c:\;%%PATH%%

would set PATH to the literal value "c:\;%PATH%".

In the C Shell, % is part of the default command prompt.

In linguistics

In linguistics, the percent sign is prepended to an example string to show that it is judged well-formed by some speakers and ill-formed by others. This may be due to differences in dialect or even individual idiolects. This is similar to 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 nonsensical.

See also

Notes

  1. ^ "[[SI brochure]]". International Bureau of Weights and Measures. 2006. Retrieved 2009-04-07. {{cite web}}: URL–wikilink conflict (help)
  2. ^ "[[The International System of Units]]" (PDF). International Bureau of Weights and Measures. 2006. Retrieved 2007-08-06. {{cite web}}: URL–wikilink conflict (help)
  3. ^ "[[ISO 31-0|Quantities and units – Part 0: General principles]]". International Organization for Standardization. 1999-12-22. Retrieved 2007-01-05. {{cite web}}: URL–wikilink conflict (help)
  4. ^ "[[The Chicago Manual of Style]]". University of Chicago Press. 2003. Retrieved 2007-01-05. {{cite web}}: URL–wikilink conflict (help)
  5. ^ "[[Jazyková poradna ÚJČ AV ČR: FAQ]]". Ústav pro jazyk český Akademie věd ČR. 2002. Retrieved 2009-03-16. {{cite web}}: URL–wikilink conflict (help)
  6. ^ American Economic Review: Style Guide
  7. ^ UNC Pharmacy style guide
  8. ^ University of Colorado style guide
  9. ^ Smith 1898, pg. 437
  10. ^ Smith 1898, pp. 439-440
  11. ^ Smith 1898, pg. 441
  12. ^ Smith 1898, pg. 440
  13. ^ Smith 1925, Vol. 2, pg.250 in Dover reprint of 1958, ISBN 0-486-20430-8
  14. ^ Thompson, Ken (1996). "Users' Reference to B".
  15. ^ "String Formatting Operations".

References