Greater than

Updated: 10/30/2017 by Computer Hope

Greater thanAlternatively referred to as an angle bracket or more than, the greater than is a symbol ( > ) that is found on all computer keyboards, commonly on the same key as the period on U.S. keyboards. The greater than symbol resembles an arrow pointing to the right and is commonly used in math and computer programming.

Tip: The wide edge of the greater than symbol always faces the larger number. For example, in "5 > 1" the large opening of the symbol is facing the 5, which is the bigger number.

Where is the greater than on the keyboard?

Below is an overview of a computer keyboard with the greater than key highlighted in blue.

Greater than key

How to create a greater than

Creating the > symbol on a U.S. keyboard

On English PC and Mac keyboards, the less than is on the same key as the period. Pressing and holding down the Shift key while pressing the greater than key creates the greater than symbol.

Creating the > symbol on a smartphone or tablet

To create a greater than symbol on a smartphone or tablet open the keyboard and go into the numbers (123) and then (#+=) or symbols (sym) section and then press your finger on the > symbol.

What is a greater than used for on a computer?

With computers, the greater than is often seen on the command line prompt. Below are two examples of command line prompts using the greater than symbols.

MS-DOS prompt:

Linux and Unix prompt:

Below is an example of how the greater than could be used in math. In the example below, the statement is showing that 10 is greater than 2.

10 > 2

The next example below, is using the greater than as an append symbol to append text to a file in the Windows command line.

echo this is an example > test.txt

Finally, below is an example of how the greater than could be used in computer programming. In this example, the if statement is performed if the variable $myvalue is greater than 100. If the variable was less than 100, this section of code would be skipped.

if ($myvalue > 100) {
print "More than 100.\n";

GT, Keyboard terms, Less than, Redirect