Mark: | > |
Greater-than sign | |
See Also: |
The greater-than sign is a mathematical symbol that denotes an inequality between two values. The widely adopted form of two equal-length strokes connecting in an acute angle at the right, , has been found in documents dated as far back as 1631. In mathematical writing, the greater-than sign is typically placed between two values being compared and signifies that the first number is greater than the second number. Examples of typical usage include and . The less-than sign and greater-than sign always "point" to the smaller number. Since the development of computer programming languages, the greater-than sign and the less-than sign have been repurposed for a range of uses and operations.
The earliest known use of the symbols and is found in Latin: Artis Analyticae Praxis ad Aequationes Algebraicas Resolvendas (The Analytical Arts Applied to Solving Algebraic Equations) by Thomas Harriot, published posthumously in 1631. The text states "Latin: Signum majoritatis ut a > b Latin: significet a Latin: majorem quam b (The sign of majority a > b indicates that a is greater than b)" and "Latin: Signum minoritatis ut a < b Latin: significet a Latin: minorem quam b (The sign of minority a < b indicates that a is less than b)."
According to historian Art Johnson, while Harriot was surveying North America, he saw a Native American with a symbol that resembled the greater-than sign,[1] in both backwards and forwards forms.[2] Johnson says it is likely Harriot developed the two symbols from this symbol.[2]
The greater-than sign is sometimes used for an approximation of the closing angle bracket, . The proper Unicode character is . ASCII does not have angular brackets.
In HTML (and SGML and XML), the greater-than sign is used at the end of tags. The greater-than sign may be included with, while produces the greater-than or equal to sign.
See also: Posting style, Markdown and Diple (textual symbol). In some early e-mail systems, the greater-than sign was used to denote quotations.[3] The sign is also used to denote quotations in Markdown.[4]
The 'greater-than sign' is encoded in ASCII as character hex 3E, decimal 62. The Unicode code point is, inherited from ASCII.
For use with HTML, the mnemonics or may also be used.
BASIC and C-family languages (including Java[5] and C++) use the comparison operator to mean "greater than". In Lisp-family languages, is a function used to mean "greater than".In Coldfusion and Fortran, operator means "greater than".
Greater-than sign should not be confused with Guillemet.
is used for an approximation of the much-greater-than sign . ASCII does not have the much greater-than sign.
The double greater-than sign is also used for an approximation of the closing guillemet, .
In Java, C, and C++, the operator is the right-shift operator. In C++ it is also used to get input from a stream, similar to the C functions and .
In Haskell, the function is a monadic operator. It is used for sequentially composing two actions, discarding any value produced by the first. In that regard, it is like the statement sequencing operator in imperative languages, such as the semicolon in C.
In XPath the operator returns true if the left operand follows the right operand in document order; otherwise it returns false.[6]
is the unsigned-right-shift operator in JavaScript. Three greater-than signs form the distinctive prompt of the firmware console in MicroVAX, VAXstation, and DEC Alpha computers (known as the SRM console in the latter). This is also the default prompt of the Python interactive shell, often seen for code examples that can be executed interactively in the interpreter:
In BASIC, Lisp-family languages, and C-family languages (including Java and C++), operator
means "greater than or equal to". In Sinclair BASIC it is encoded as a single-byte code point token.In Fortran, operator means "greater than or equal to".
In Bourne shell and Windows PowerShell, the operator means "greater than or equal to".
In Lua, operator
means "greater than or equal to" and is used like thisIn Bourne shell (and many other shells), greater-than sign is used to redirect output to a file. Greater-than plus ampersand is used to redirect to a file descriptor.
Greater-than sign is used in the 'spaceship operator',
.In ECMAScript and C#, the greater-than sign is used in lambda function expressions.
In ECMAScript:
In C#:
In PHP, the greater-than sign is used in conjunction with the less-than sign as a not equal to operator. It is the same as the !=
operator.
echo $x <> $y; // trueecho $x <> $z; // false
Unicode provides various greater than symbols:[7] (use ⇕ controls to change sort order temporarily)
Symbol | Code Point | Unicode name | |
---|---|---|---|
> | U+003E | ||
≥ | U+2265 | ||
≧ | U+2267 | ||
≩ | U+2269 | ||
≫ | U+226B | ||
≯ | U+226F | ||
≱ | U+2271 | ||
≳ | U+2273 | ||
≵ | U+2275 | ||
⋗ | U+22D7 | ||
⋙ | U+22D9 | ||
⋝ | U+22DD | ||
⋧ | U+22E7 | ||
⍄ | U+2344 | ||
⍩ | U+2369 | ||
⦕ | U+2995 | ||
⥸ | U+2978 | ||
⧁ | U+29C1 | ||
⩺ | U+2A7A | ||
⪚ | U+2A9A | ||
⪜ | U+2A9C | ||
⩾ | U+2A7E | ||
⪀ | U+2A80 | ||
⪂ | U+2A82 | ||
⪄ | U+2A84 | ||
⪆ | U+2A86 | ||
⪎ | U+2A8E | ||
⪊ | U+2A8A | ||
⪈ | U+2A88 | ||
⪢ | U+2AA2 | ||
⪧ | U+2AA7 | ||
⪩ | U+2AA9 | ||
⫺ | U+2AFA | ||
⩼ | U+2A7C | ||
⦔ | U+2994 | ||
⪖ | U+2A96 | ||
⪘ | U+2A98 | ||
⪞ | U+2A9E | ||
⪠ | U+2AA0 | ||
⫸ | U+2AF8 | ||
﹥ | U+FE65 | ||
> | U+FF1E |