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.

How is the less than used?

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";

Tip: The wide edge of the less than symbol always faces to the larger number. For example, with 1 < 5 it's easy to see one is less than five.

How to create the less than

Creating the < symbol on a U.S. keyboard

To create this symbol using a U.S. keyboard hold down the Shift key and press the comma key, which is above the right-hand side of the space bar on the keyboard.

Creating the < symbol on a smartphone or tablet

To create this symbol on a smartphone or tablet open the keyboard and go into the numbers or symbols (sym) section and then press your finger on the # symbol and then tap on the < key.

Related pages

Also see: Greater than, Keyboard terms