>  

Greaterthan sign  
In Unicode  U+003E > GREATERTHAN SIGN (>, >) 
Different from  
Different from  U+232A 〉 RIGHTPOINTING ANGLE BRACKET 
Related  
See also  U+2265 ≥ GREATERTHAN OR EQUAL TO U+2A7E ⩾ GREATERTHAN OR SLANTED EQUAL TO U+226B ≫ MUCH GREATERTHAN 
The greaterthan sign is a mathematical symbol that denotes an inequality between two values. The widely adopted form of two equallength strokes connecting in an acute angle at the right, >, has been found in documents dated as far back as 1631.^{[1]} In mathematical writing, the greaterthan 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 1.5 > 1 and 1 > −2. The lessthan sign and greaterthan sign always "point" to the smaller number. Since the development of computer programming languages, the greaterthan sign and the lessthan sign have been repurposed for a range of uses and operations.
The earliest known use of the symbols < and > is found in Artis Analyticae Praxis ad Aequationes Algebraicas Resolvendas (The Analytical Arts Applied to Solving Algebraic Equations) by Thomas Harriot, published posthumously in 1631.^{[1]} The text states "Signum majoritatis ut a > b significet a majorem quam b (The sign of majority a > b indicates that a is greater than b)" and "Signum minoritatis ut a < b significet a 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 greaterthan sign,^{[1]} in both backwards and forwards forms.^{[2]} Johnson says it is likely Harriot developed the two symbols from this symbol.^{[2]}
The greaterthan sign is sometimes used for an approximation of the closing angle bracket, ⟩. The proper Unicode character is U+232A 〉 RIGHTPOINTING ANGLE BRACKET. ASCII does not have angular brackets.
In HTML (and SGML and XML), the greaterthan sign is used at the end of tags. The greaterthan sign may be included with >
, while ≥
produces the greaterthan or equal to sign.
In some early email systems, the greaterthan sign was used to denote quotations.^{[3]} The sign is also used to denote quotations in Markdown.^{[4]}
The 'greaterthan sign' > is encoded in ASCII as character hex 3E, decimal 62. The Unicode code point is U+003E > GREATERTHAN SIGN, inherited from ASCII.
For use with HTML, the mnemonics >
or >
may also be used.
BASIC and Cfamily languages (including Java^{[5]} and C++) use the comparison operator >
to mean "greater than". In Lispfamily languages, >
is a function used to mean "greater than".
In Coldfusion and Fortran, operator .GT.
means "greater than".
>> is used for an approximation of the muchgreaterthan sign ≫. ASCII does not have the much greaterthan sign.
The double greaterthan sign is also used for an approximation of the closing guillemet, ».
In Java, C, and C++, the operator >>
is the rightshift operator. In C++ it is also used to get input from a stream, similar to the C functions getchar
and fgets
.
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 unsignedrightshift operator in JavaScript. Three greaterthan 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:
python
Python 3.9.2 (default, Feb 20 2021, 18:40:11)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello World")
Hello World
>>>
>=
is sometimes used for an approximation of the greater than or equal to sign, ≥ which was not included in the ASCII repertoire. The sign is, however, provided in Unicode, as U+2265 ≥ GREATERTHAN OR EQUAL TO (≥, ≥, ≥).
In BASIC, Lispfamily languages, and Cfamily languages (including Java and C++), operator >=
means "greater than or equal to". In Sinclair BASIC it is encoded as a singlebyte code point token.
In Fortran, operator .GE.
means "greater than or equal to".
In Bourne shell and Windows PowerShell, the operator ge
means "greater than or equal to".
In Lua, operator >=
means "greater than or equal to" and is used like this
x = math.random(1,9)
y = 5
if x >= y then
print("x("..x..") is more or equal to y("..y..")")
else
print("x("..x..") is less than y("..y..")")
end
expected output: x(number >= 5) is more or equal to y(5) or x(number < 5) is less than y(5)
>
is used in some programming languages (for example F#) to create an arrow. Arrows like these could also be used in text where other arrow symbols are unavailable. In the R programming language, this can be used as the right assignment operator. In the C, C++, and PHP, this is used as a member access operator. In Swift and Python, it is used to indicate the return value type when defining a function (i.e., func foo() > MyClass {...}
).
In Bourne shell (and many other shells), greaterthan sign is used to redirect output to a file. Greaterthan plus ampersand (>&
) is used to redirect to a file descriptor.
Greaterthan sign is used in the 'spaceship operator', <=>
.
In ECMAScript and C#, the greaterthan sign is used in lambda function expressions.
In ECMAScript:
const square = x => x * x;
console.log(square(5)); // 25
In C#:
Func<int, int> square = x => x * x;
Console.WriteLine(square(5)); // 25
In PHP, the greaterthan sign is used in conjunction with the lessthan sign as a not equal to operator. It is the same as the !=
operator.
$x = 5;
$y = 3;
$z = 5;
echo $x <> $y; // true
echo $x <> $z; // false
In addition to U+003E > GREATERTHAN SIGN (>, >), Unicode provides various greater than symbols:^{[7]}
Symbol  Code Point  Name 

⍩  U+2369  Apl Functional Symbol GreaterThan Diaeresis

⍄  U+2344  Apl Functional Symbol Quad GreaterThan

⧁  U+29C1  Circled GreaterThan

⦕  U+2995  Double Left Arc GreaterThan Bracket

⪚  U+2A9A  DoubleLine Equal To Or GreaterThan

⪜  U+2A9C  DoubleLine Slanted Equal To Or GreaterThan

⫺  U+2AFA  DoubleLine Slanted GreaterThan Or Equal To

⪢  U+2AA2  Double Nested GreaterThan

＞  U+FF1E  Fullwidth greater than Sign

⋝  U+22DD  Equal To Or GreaterThan

⥸  U+2978  GreaterThan Above Rightwards Arrow

⪎  U+2A8E  GreaterThan Above Similar Or Equal

⪊  U+2A8A  GreaterThan And Not Approximate

⪈  U+2A88  GreaterThan And SingleLine Not Equal To

≩  U+2269  GreaterThan But Not Equal To

⋧  U+22E7  GreaterThan But Not Equivalent To

⪧  U+2AA7  GreaterThan Closed By Curve

⪩  U+2AA9  GreaterThan Closed By Curve Above Slanted Equal

⪆  U+2A86  GreaterThan Or Approximate

≥  U+2265  GreaterThan Or Equal To

≳  U+2273  GreaterThan Or Equivalent To

⩾  U+2A7E  GreaterThan Or Slanted Equal To

⪂  U+2A82  GreaterThan Or Slanted Equal To With Dot Above

⪄  U+2A84  GreaterThan Or Slanted Equal To With Dot Above Left

⪀  U+2A80  GreaterThan Or Slanted Equal To With Dot Inside

≧  U+2267  GreaterThan Over Equal To

>  U+003E  GreaterThan Sign

⩺  U+2A7A  GreaterThan With Circle Inside

⋗  U+22D7  GreaterThan With Dot

⩼  U+2A7C  GreaterThan With Question Mark Above

≫  U+226B  Much GreaterThan

≱  U+2271  Neither GreaterThan Nor Equal To

≵  U+2275  Neither GreaterThan Nor Equivalent To

≯  U+226F  Not GreaterThan

⦔  U+2994  Right Arc GreaterThan Bracket

⪠  U+2AA0  Similar Above GreaterThan Above Equals Sign

⪞  U+2A9E  Similar Or GreaterThan

⪖  U+2A96  Slanted Equal To Or GreaterThan

⪘  U+2A98  Slanted Equal To Or GreaterThan With Dot Inside

﹥  U+FE65  Small greater than sign

⫸  U+2AF8  Triple Nested GreaterThan

⋙  U+22D9  Very Much GreaterThan
