Hyphen-minus

The hyphen-minus ( - ) is a character used in digital documents and computing to represent a hyphen ( ) or a minus sign ( ) .[1] It is present in Unicode as code point U+002D - hyphen-minus; it is also in ASCII with the same value.

The use of one character for hyphen and minus, and sometimes also for en dash, was a compromise made in the early days of fixed-width typewriters and computer displays. However, in proper typesetting and graphic design, there are distinct characters for hyphens, dashes, and the minus sign. Usage of the hyphen-minus nonetheless persists in many contexts, as it is well-known, easy to enter on keyboards, and in the same location in all common character sets.

Most programming languages, restricting themselves to ASCII, use the hyphen-minus, rather than the Unicode character U+2212 minus sign, for denoting subtraction and negative numbers.

Commonly, an em dash is represented by two hyphen-minus signs in succession, or even three in TeX markup.

See also

References

  1. ^ Jukka K. Korpela (2006). Unicode explained. O'Reilly Media, Inc.. p. 382. ISBN 9780596101213. http://books.google.com/books?id=PcWU2yxc8WkC&pg=PA382.