Less Than Sign
   HOME

TheInfoList



OR:

The less-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 left, , has been found in documents dated as far back as the 1560s. In mathematical writing, the less-than sign is typically placed between two values being compared and signifies that the first number is less than the second number. Examples of typical usage include '' < 1'' and ''−2 < 0''. Since the development of computer programming languages, the less-than sign and the greater-than sign have been repurposed for a range of uses and operations.


Computing

The less-than sign, , is an original ASCII character (hex 3C, decimal 60). The less-than sign may be used for an approximation of the opening angle bracket, . ASCII does not have angle brackets but are standard in Unicode (). The latter is expected in formal texts.


Programming

In
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
,
Lisp A lisp is a speech impairment in which a person misarticulates sibilants (, , , , , , , ). These misarticulations often result in unclear speech. Types * A frontal lisp occurs when the tongue is placed anterior to the target. Interdental lisping ...
-family languages, and C-family languages (including Java and C++), comparison operator < means "less than". In
Coldfusion Adobe ColdFusion is a commercial rapid web-application development computing platform created by J. J. Allaire in 1995. (The programming language used with that platform is also commonly called ColdFusion, though is more accurately known as CF ...
, operator .lt. means "less than". In Fortran, operator .LT. means "less than"; later versions allow <.


Shell scripts

In
Bourne shell The Bourne shell (sh) is a Shell (computing), shell Command-line interface#Command-line interpreter, command-line interpreter for computer operating systems. The Bourne shell was the default Unix shell, shell for Version 7 Unix. Unix-like syste ...
(and many other shells), operator -lt means "less than". Less-than sign is used to redirect input from a file. Less-than plus ampersand () is used to redirect from a
file descriptor In Unix and Unix-like computer operating systems, a file descriptor (FD, less frequently fildes) is a process-unique identifier (handle) for a file or other input/output resource, such as a pipe or network socket. File descriptors typically have ...
.


Double less-than sign

The double less-than sign, , may be used for an approximation of the ''
much-less-than sign In mathematics, an inequality is a relation which makes a non-equal comparison between two numbers or other mathematical expressions. It is used most often to compare two numbers on the number line by their size. There are several different ...
'' () or of the opening guillemet (). ASCII does not encode either of these signs, though they are both included in Unicode. In Bash, Perl, and Ruby, operator (where "EOF" is an arbitrary string, but commonly "EOF" denoting "end of file") is used to denote the beginning of a here document. In C and C++, operator represents a binary left shift. In the C++ Standard Library, operator , when applied on an output stream, acts as ''insertion operator'' and performs an output operation on the stream. In Ruby, operator acts as ''append operator'' when used between an array and the value to be appended. In XPath the operator returns true if the left operand precedes the right operand in document order; otherwise it returns false.


Triple less-than sign

In PHP, operator is used to denote the beginning of a heredoc statement (where OUTPUT is an arbitrary named variable.) In Bash, is used as a "here string", where is expanded and supplied to the command on its standard input, similar to a heredoc.


Less-than sign with equals sign

The less-than sign with the equals sign, , may be used for an approximation of the less-than-or-equal-to sign, . ASCII does not have a less-than-or-equal-to sign, but Unicode defines it at code point U+2264. In
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
,
Lisp A lisp is a speech impairment in which a person misarticulates sibilants (, , , , , , , ). These misarticulations often result in unclear speech. Types * A frontal lisp occurs when the tongue is placed anterior to the target. Interdental lisping ...
-family languages, and C-family languages (including Java and C++), operator means "less than or equal to". In
Sinclair BASIC Sinclair BASIC is a dialect of the programming language BASIC used in the 8-bit home computers from Sinclair Research and Timex Sinclair. The Sinclair BASIC interpreter was made by Nine Tiles Networks Ltd. History Sinclair BASIC was orig ...
it is encoded as a single-byte code point token. In Prolog, means "less than or equal to" (as distinct from the arrow ). In Fortran, operators and both mean "less than or equal to". In
Bourne shell The Bourne shell (sh) is a Shell (computing), shell Command-line interface#Command-line interpreter, command-line interpreter for computer operating systems. The Bourne shell was the default Unix shell, shell for Version 7 Unix. Unix-like syste ...
and Windows PowerShell, the operator means "less than or equal to".


Less-than sign with hyphen-minus

In the R programming language, the less-than sign is used in conjunction with a
hyphen-minus The hyphen-minus is the most commonly used type of hyphen, widely used in digital documents. It is the only character that looks like a minus sign or a dash in many character sets such as ASCII or on most keyboards, so it is also used as such. ...
to create an arrow (), this can be used as the left assignment operator.


Spaceship operator

Less-than sign is used in the spaceship operator.


HTML

In HTML (and
SGML The Standard Generalized Markup Language (SGML; ISO 8879:1986) is a standard for defining generalized markup languages for documents. ISO 8879 Annex A.1 states that generalized markup is "based on two postulates": * Declarative: Markup should des ...
and XML), the less-than sign is used at the beginning of tags. The less-than sign may be included with &lt;. The less-than-or-equal-to sign, , may be included with &le;.


Mathematics

In an inequality, the less-than sign and greater-than sign always "point" to the smaller number. Put another way, the "jaws" (the wider section of the symbol) always direct to the larger number.


See also

*
Inequality (mathematics) In mathematics, an inequality is a relation which makes a non-equal comparison between two numbers or other mathematical expressions. It is used most often to compare two numbers on the number line by their size. There are several different n ...
* Greater-than sign * Relational operator *
Much-less-than sign In mathematics, an inequality is a relation which makes a non-equal comparison between two numbers or other mathematical expressions. It is used most often to compare two numbers on the number line by their size. There are several different ...


References

{{Reflist Typographical symbols Mathematical symbols Inequalities