Less than

Less thanAlternatively referred to as an angle bracket, the less than (LT) is a symbol ( < ) that is found on all computer keyboards, commonly the same key as the comma. The less than symbol resembles an arrow pointing to the left and is commonly used in math and computer programming.

Tip: The wide edge of the less than symbol always faces to the larger number. For example, with 1 < 5 you know one is less than five.

Where is the less than on the keyboard?

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

Less than key

How to create a less 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 comma. Pressing and holding down the Shift key while pressing the less than key creates the less than symbol.

Creating the < symbol on a smartphone or tablet

To create a less 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 less than used for on a computer?

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

2 < 10

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

if ($myvalue < 100) {
print "Less than 100.\n";
}

Related pages

Also see: Greater than, Keyboard terms