Loading AI tools
Typographic symbol (#) From Wikipedia, the free encyclopedia
The symbol # is known variously in English-speaking regions as the number sign,[1] hash,[2] or pound sign.[3] The symbol has historically been used for a wide range of purposes including the designation of an ordinal number and as a ligatured abbreviation for pounds avoirdupois – having been derived from the now-rare ℔.[4]
# | |
---|---|
Number sign | |
In Unicode | U+0023 # NUMBER SIGN (#) |
Different from | |
Different from | U+266F ♯ MUSIC SHARP SIGN U+2317 ⌗ VIEWDATA SQUARE U+22D5 ⋕ EQUAL AND PARALLEL TO U+4E95 井 CJK UNIFIED IDEOGRAPH-4E95 (Jingtian) |
Related | |
See also | U+00A3 £ POUND SIGN U+2116 № NUMERO SIGN |
Since 2007, widespread usage of the symbol to introduce metadata tags on social media platforms has led to such tags being known as "hashtags",[5] and from that, the symbol itself is sometimes called a hashtag.[6]
The symbol is distinguished from similar symbols by its combination of level horizontal strokes and right-tilting vertical strokes.
It is believed that the symbol traces its origins to the symbol ℔,[a] an abbreviation of the Roman term libra pondo, which translates as "pound weight".[7][8] The abbreviation "lb" was printed as a dedicated ligature including a horizontal line across (which indicated abbreviation).[9][8] Ultimately, the symbol was reduced for clarity as an overlay of two horizontal strokes "=" across two slash-like strokes "//".[8]
The symbol is described as the "number" character in an 1853 treatise on bookkeeping,[10] and its double meaning is described in a bookkeeping text from 1880.[11] The instruction manual of the Blickensderfer model 5 typewriter (c. 1896) appears to refer to the symbol as the "number mark".[12] Some early-20th-century U.S. sources refer to it as the "number sign",[13] although this could also refer to the numero sign (№).[14] A 1917 manual distinguishes between two uses of the sign: "number (written before a figure)" and "pounds (written after a figure)".[15] The use of the phrase "pound sign" to refer to this symbol is found from 1932 in U.S. usage.[16] The term hash sign is found in South African writings from the late 1960s[17] and from other non-North-American sources in the 1970s.[citation needed]
For mechanical devices, the symbol appeared on the keyboard of the Remington Standard typewriter (c. 1886).[18] It appeared in many of the early teleprinter codes and from there was copied to ASCII, which made it available on computers and thus caused many more uses to be found for the character. The symbol was introduced on the bottom right button of touch-tone keypads in 1968, but that button was not extensively used until the advent of large-scale voicemail (PBX systems, etc.) in the early 1980s.[4]
One of the uses in computers was to label the following text as having a different interpretation (such as a command or a comment) from the rest of the text. It was adopted for use within internet relay chat (IRC) networks circa 1988 to label groups and topics.[19] This usage inspired Chris Messina to propose a similar system to be used on Twitter to tag topics of interest on the microblogging network;[20][21] this became known as a hashtag. Although used initially and most popularly on Twitter, hashtag use has extended to other social media sites.[22]
Number sign
Pound sign or pound
#!
is "hash, bang" or "shebang".Hex
Octothorp, octothorpe, octathorp, octatherp
Square
#
instead, as does most documentation.[citation needed]Other
When ⟨#⟩ prefixes a number, it is read as "number". "A #2 pencil", for example, indicates "a number-two pencil". The abbreviations 'No.' and '№' are used commonly and interchangeably. The use of ⟨#⟩ as an abbreviation for "number" is common in informal writing, but use in print is rare.[44] Where Americans might write "Symphony #5", British and Irish people usually write "Symphony No. 5".[citation needed]
When ⟨#⟩ is after a number, it is read as "pound" or "pounds", meaning the unit of weight. The text "5# bag of flour" would mean "five-pound bag of flour". The abbreviations "lb." and "℔" are used commonly and interchangeably. This usage is rare outside North America, where "lb" or "lbs" is used.
⟨#⟩ is not a replacement for the pound sign ⟨£⟩, but British typewriters and keyboards have a £ key where American keyboards have a # key.[45] Many early computer and teleprinter codes (such as BS 4730 (the UK national variant of the ISO/IEC 646 character set) substituted "£" for "#" to make the British versions, thus it was common for the same binary code to display as #
on US equipment and £
on British equipment ("$" was not substituted to avoid confusing dollars and pounds in financial communications).
#
in HTML5.[46]#
introduces a comment that goes to the end of the line.[47] The combination #!
at the start of an executable file is a "shebang", "hash-bang" or "pound-bang", used to tell the operating system which program to use to run the script (see magic number). This combination was chosen so it would be a comment in the scripting languages.
#!
is the symbol of the CrunchBang Linux distribution.#
is used as a modifier to array syntax to return the index number of the last element in the array, e.g., an array's last element is at $array[$#array]
. The number of elements in the array is $#array + 1
, since Perl arrays default to using zero-based indices. If the array has not been defined, the return is also undefined. If the array is defined but has not had any elements assigned to it, e.g., @array = ()
, then $#array
returns −1
. See the section on Array functions in the Perl language structure article.#
is used to start a preprocessor directive. Inside macros, after #define
, it is used for various purposes; for example, the double pound (hash) sign ##
is used for token concatenation.#
is placed by convention at the end of a command prompt to denote that the user is working as root.#
is used in a URL of a web page or other resource to introduce a "fragment identifier" – an id which defines a position within that resource. In HTML, this is known as an anchor link. For example, in the URL https://en.wikipedia.org/wiki/Number_sign#Computing
the portion after the #
(Computing
) is the fragment identifier, in this case denoting that the display should be moved to show the tag marked by <span id="Computing">...</span>
in the HTML.[48]#
precedes the name of every channel that is available across an entire IRC network.#
is sometimes used to denote a permalink for that particular weblog entry.#
is often used to introduce numbered list items.#
is used in the Modula-2 and Oberon programming languages designed by Niklaus Wirth and in the Component Pascal language derived from Oberon to denote the not equal symbol, as a stand-in for the mathematical unequal sign ≠, being more intuitive than <>
or !=
. For example: IF i # 0 THEN ...
#
is used for attributes such as in #[test]
.#
is the operator used to call a method.#
is a dispatching read macro character used to extend the S-expression syntax with short cuts and support for various data types (complex numbers, vectors and more).#
is the prefix for certain syntax with special meaning.#
, when prefixed to a field name, becomes a projection function (function to access the field of a record or tuple); also, #
prefixes a string literal to turn it into a character literal.#
, when used as a variable, becomes a pure function (a placeholder that is mapped to any variable meeting the conditions).#
, when prefixing a number, references an arguments for a user defined command. For instance \newcommand{\code}[1]{\texttt{#1}}
.#
is used with the @see
tag to introduce or separate a field, constructor, or method member from its containing class.#
is used to denote immediate mode addressing, e.g., LDA #10
, which means "load accumulator A with the value 10" in MOS 6502 assembly language.#
is used to identify a color specified in hexadecimal format, e.g., #FFAA00
. This usage comes from X11 color specifications, which inherited it from early assembler dialects that used #
to prefix hexadecimal constants, e.g.: ZX Spectrum Z80 assembly.[51]#
. Lines starting with characters other than "#" are treated as comments.#
(along with $
and @
) are used as additional letters in identifiers, labels and data set names.#
is the Tally or Count function,[53] and similarly in Lua, #
can be used as a shortcut to get the length of a table, or get the length of a string. Due to the ease of writing "#" over longer function names, this practice has become standard in the Lua community.#
is a reference to the root namespace while ##
is a reference to the current space's parent namespace./d/ → [t] / _#
means that /d/ becomes [t] when it is the last segment in a word (i.e. when it appears before a word boundary).The number sign was assigned code 35 (hex 0x23) in ASCII where it was inherited by many character sets. In EBCDIC it is often at 0x7B or 0xEC.
Unicode characters with "number sign" in their names:
Additionally, a Unicode named sequence KEYCAP NUMBER SIGN is defined for the grapheme cluster U+0023+FE0F+20E3
(#️⃣).[62]
On the standard US keyboard layout, the # symbol is ⇧ Shift+3. On standard UK and some other European keyboards, the same keystrokes produce the pound (sterling) sign, £ symbol, and # may be moved to a separate key above the right shift key. If there is no key, the symbol can be produced on Windows with Alt+35, on Mac OS with ⌥ Opt+3, and on Linux with Compose++.
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.