Number sign
The symbol is known as the number sign, hash, or pound sign. 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.
Since 2007, widespread usage of the symbol to introduce metadata tags on social media platforms has led to such tags being known as "hashtags", and from that, the symbol itself is sometimes called a hashtag.
The symbol is distinguished from similar symbols by its combination of level horizontal strokes and right-tilting vertical strokes.
History
It is believed that the symbol traces its origins to the symbol, an abbreviation of the Roman term libra pondo, which translates as "pound weight". This abbreviation was printed with a dedicated ligature type, with a horizontal line across, so that the lowercase letter would not be mistaken for the numeral. Ultimately, the symbol was reduced for clarity as an overlay of two horizontal strokes "=" across two slash-like strokes "//". Examples of it being used to indicate pounds exist at least as far back as 1850.The symbol is described as the "number" character in an 1853 treatise on bookkeeping, and its double meaning is described in a bookkeeping text from 1880. The instruction manual of the Blickensderfer model 5 typewriter appears to refer to the symbol as the "number mark". Some early-20th-century U.S. sources refer to it as the "number sign", although this could also refer to the numero sign. A 1917 manual distinguishes between two uses of the sign: "number "; and "pounds ". The use of the phrase "pound sign" to refer to this symbol is found from 1932 in U.S. usage.
The term hash sign is found in South African writings from the late 1960s, and from other non-North-American sources in the 1970s.
The symbol appears to have been used primarily in handwritten material; in the printing business, the numero symbol and barred-lb are used for "number" and "pounds" respectively.
For mechanical devices, the symbol appeared on the keyboard of the Remington Standard typewriter, but was not used on the keyboards used for typesetting. 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 in the early 1980s.
Usage in information technology
The number sign is often used in information technology to highlight a special meaning. It was adopted for use within internet relay chat networks circa 1988 to label groups and topics. This usage inspired Chris Messina to propose a similar system to be used on Twitter to tag topics of interest on the microblogging network. Although the hashtag started out most popularly on Twitter as the main social media platform for this use, the use has extended to other social media sites.Usage in North America
Mainstream use in the United States is as follows: when it prefixes a number, it is read as "number", as in "a #2 pencil". The one exception is with the "#" key on a phone, which is commonly referred to as the pound key or pound. Thus instructions to dial an extension such as #77 are commonly read as "pound seven seven".In Canada the symbol is called both the number sign and the pound sign or pound key. The American company Avaya has an option in their programming to denote Canadian English, which in turn instructs the system to say number sign to callers instead of pound sign.
Usage in the United Kingdom and Ireland
In the United Kingdom and Ireland, it is generally called a hash. It is not used to denote pounds, either as weight or currency. It is not called the pound sign; that term is understood to mean the currency symbol.The use of as an abbreviation for "number" may be understood in Britain and Ireland, where there has been business or educational contact with American usage, but use in print is rare. British typewriters had a key where American typewriters had a key. Where Americans might write "Symphony #5", the British and Irish are more likely to write "Symphony No. 5".
To add to the confusion between and, in BS 4730, 0x23 represents, whereas in ASCII, it represents, thus it was common for the same binary code to display as on US equipment and on British equipment.
Other names in English
The symbol has many other names in English:; Comment sign: Taken from its use in many shell scripts and some programming languages to start comments.
; Hash mark
; Hashtag, or hashtag symbol: The word hashtag is often used when reading social media messages aloud, indicating the start of a hashtag. For instance, the text "#foo" is often read out loud as "hashtag, foo". This leads to the common belief that the symbol itself is called hashtag. Twitter documentation refers to it as "the hashtag symbol".
; Hex: Common usage in Singapore and Malaysia, as spoken by many recorded telephone directory-assistance menus: "Please enter your phone number followed by the hex key". The term hex is discouraged in Singapore in favour of hash. In Singapore, a hash is also called hex in apartment addresses, where it precedes the floor number.
; Octothorp, octothorpe, octathorp, octatherp
; Sharp: Resemblance to the glyph used in music notation, U+266F. So called in the name of the Microsoft programming languages C#, J# and F#. Microsoft says, "It's not the 'hash' symbol as most people believe. It's actually supposed to be the musical sharp symbol. However, because the sharp symbol is not present on the standard keyboard, it's easier to type the hash symbol. The name of the language is, of course, pronounced 'see sharp'." According to the ECMA-334 C# Language Specification, section 6, Acronyms and abbreviations, the name of the language is written "C#" followed by the NUMBER SIGN # and pronounced "C Sharp".
; : Used in proof-reading to denote that a space should be inserted. This can mean
; Square: Occasionally used in the UK – especially during the Prestel era, when the symbol was a page address delimiter. The International Telecommunications Union specification ITU-T E.161 3.2.2 states: "The symbol is to be known as a 'square' or the most commonly used equivalent term in other languages". Formally, this is not a number sign but rather another character, the.
; Gate: From the 1960s to the 1990s the British telephone company, the GPO and its successors Post Office Telecommunications and British Telecom referred to this as gate on telephone keypads.
; Others: tic tac toe, crosshatch, fence, mesh, flash, grid, pig-pen, tictactoe, scratch , gate, hak, oof, rake, crunch, punch mark, sink, corridor, capital 3, and waffle.
In mathematics
- In set theory, #S is the cardinality of the set S. That is, for a set, in which all are mutually distinct,
- In topology, A"#"B is the connected sum of manifolds A and B, or of knots A and B in knot theory.
- In number theory, n# is the primorial of n.
In computing
- In Unicode and ASCII, the symbol has a code point as and
#
in HTML5. - In many scripting languages and data file formats, especially ones that originated on Unix, introduces a comment that goes to the end of the line. 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. This combination was chosen so it would be a comment in the scripting languages.
- * is the symbol of the CrunchBang Linux distribution.
- In the Perl programming language, 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
. The number of elements in the array is, 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.,, then returns. See the section on Array functions in the Perl language structure article.$array - In both the C preprocessor and C++ preprocessor, as well as in other syntactically C-like languages, is used to start a preprocessor directive. Inside macros it is used for various purposes, including the double pound sign used for token concatenation.
- In Unix shells, 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. For example, in the URL the portion after the is the fragment identifier, in this case denoting that the display should be moved to show the tag marked by in the HTML.
- Internet Relay Chat: on servers, precedes the name of every channel that is available across an entire IRC network.
- In blogs, is sometimes used to denote a permalink for that particular weblog entry.
- In lightweight markup languages, such as wikitext, 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:
- In OCaml, is the operator used to call a method.
- In Common Lisp, is a dispatching read macro character used to extend the S-expression syntax with short cuts and support for various data types.
- In Scheme, is the prefix for certain syntax with special meaning.
- In Standard ML,, when prefixed to a field name, becomes a projection function ; also, prefixes a string literal to turn it into a character literal.
- In Mathematica syntax,, when used as a variable, becomes a pure function.
- In LaTeX,, when prefixing a number, references an arguments for a user defined command. For instance
\newcommand
. - In Javadoc, is used with the tag to introduce or separate a field, constructor, or method member from its containing class.
- In some dialects of assembly language, is used to denote immediate mode addressing, e.g.,, which means "load accumulator A with the value 10" in MOS 6502 assembly language.
- in HTML, CSS, SVG, and other computing applications is used to identify a color specified in hexadecimal format, e.g.,. 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.
- In Be-Music Script, every command line starts with. Lines starting with characters other than "#" are treated as comments.
- The use of the hash symbol in a hashtag is a phenomenon conceived by Chris Messina, and popularized by social media network Twitter, as a way to direct conversations and topics amongst users. This has led to an increasingly common tendency to refer to the symbol itself as "hashtag".
- In programming languages like PL/1 and Assembler used on IBM mainframe systems, as well as JCL, the are used as additional letters in identifiers, labels and data set names.
- In J, is the Tally or Count function., 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.
- In Dyalog APL, is a reference to the root namespace while is a reference to the current space's parent namespace.
Other uses
- Press releases: The notation denotes "end", i.e. that there is no further copy to come.
- Chess notation: A hash after a move denotes checkmate, being easier to type than the traditional double dagger,.
- Scrabble: Putting a number sign after a word indicates that the word is found in the British word lists, but not the North American lists.
- Publishing: When submitting a fiction manuscript for publication, a number sign on a line by itself indicates a section break in the text.
- Prescription drug delimiter: In some countries, such as Norway or Poland, is used as a delimiter between different drugs on medical prescriptions.
- Copy writing and editing: Technical writers often use three hash signs,, as a marker in text where more content will be added or there are errors to be corrected.
- Mining: In underground mining, the hash sign is sometimes used as a shorthand for "seam" or "shaft". An example would be, which would mean "four shaft" or "four seam" depending on the context.
- Medical shorthand: The hash is often used to indicate a bone fracture. For example, "#NOF" is often used for "fractured neck of femur". In radiotherapy, a full dose of radiation is divided into smaller doses or 'fractions'. These are given the shorthand to denote either the number of treatments in a prescription, or the fraction number.
- Linguistic phonology: denotes a word boundary. For instance, means that becomes when it is the last segment in a word.
- Linguistic syntax: A hash before an example sentence denotes that the sentence is semantically ill-formed, though grammatically well-formed. For instance, "#The toothbrush is pregnant" is a grammatically correct sentence, but the meaning is odd.
- Teletext and DVB subtitles : The hash symbol is used to mark text that is either sung by a character or heard in background music, e.g.
- American Sign Language transcription: The hash prefixing an all-caps word identifies a lexicalized fingerspelled sign, having some sort of blends or letter drops. All-caps words without the prefix are used for standard English words that are fingerspelled in their entirety.
- Footnote symbols : Due to ready availability in many fonts and directly on computer keyboards, "#" and other symbols have in recent years begun to be occasionally used in catalogues and reports in place of more traditional symbols.
Unicode
At least three orthographically distinct number signs from other languages are also assigned:
On keyboards