Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Less-than sign

From Wikipedia, the free encyclopedia
Mathematical symbol for "less than"
For the use of the "<" sign as punctuation, seeBracket § Angle brackets.
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Less-than sign" – news ·newspapers ·books ·scholar ·JSTOR
(June 2019) (Learn how and when to remove this message)
<
Less-than sign
In UnicodeU+003C <LESS-THAN SIGN (&lt;, &LT;)
Related
See alsosimilar symbolslisted below

Theless-than sign is a mathematical symbol that denotes aninequality 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 include1 < 4 and−2 < 0.

Since the development of computerprogramming languages, the less-than sign and the greater-than sign have been repurposed for a range of uses and operations.

Computing

[edit]

Theless-than sign,<, is an originalASCII character (hex 3C, decimal 60).

Programming

[edit]

InBASIC,Lisp-family languages, andC-family languages (includingJava andC++),comparison operator< means "less than".

InColdfusion, operator.lt. means "less than".

InFortran, operator.LT. means "less than"; later versions allow<.

Shell scripts

[edit]

InBourne shell (and many other shells), operator-lt means "less than". Less-than sign is used toredirect input from a file. Less-than plus ampersand (<&) is used to redirect from afile descriptor.

Double less-than sign

[edit]

Thedouble less-than sign,<<, may be used for an approximation of themuch-less-than sign () or of the openingguillemet («). ASCII does not encode either of these signs, though they are both included inUnicode.

InBash,Perl, andRuby, operator<<EOF (where "EOF" is an arbitrary string, but commonly "EOF" denoting "end of file") is used to denote the beginning of ahere document.

InC andC++, operator<< represents abinary left shift.

In theC++ Standard Library, operator<<, when applied on an output stream, acts asinsertion operator and performs an output operation on the stream.

InRuby, operator<< acts asappend operator when used between an array and the value to be appended.

InXPath the<< operator returns true if the left operand precedes the right operand in document order; otherwise it returns false.[1]

Triple less-than sign

[edit]

InPHP, operator<<<OUTPUT is used to denote the beginning of aheredoc statement (whereOUTPUT is an arbitrary named variable.)

In Bash,<<<word is used as a "here string", whereword is expanded and supplied to the command on its standard input, similar to a heredoc.

Less-than sign with equals sign

[edit]

The less-than sign with the equals sign,<=, may be used for an approximation of theless-than-or-equal-to sign,. ASCII does not have a less-than-or-equal-to sign, butUnicode defines it at code point U+2264.

InBASIC,Lisp-family languages, andC-family languages (includingJava andC++), operator<= means "less than or equal to". InSinclair BASIC it is encoded as a single-byte code point token.

InProlog,=< means "less than or equal to" (as distinct from the arrow<=).

InFortran, operators.LE. and<= both mean "less than or equal to".

InBourne shell andWindows PowerShell, the operator-le means "less than or equal to".

Less-than sign with hyphen-minus

[edit]

In theR programming language, the less-than sign is used in conjunction with ahyphen-minus to create an arrow (<-), this can be used as the left assignment operator.

Spaceship operator

[edit]

The less-than sign is used in thespaceship operator.

HTML

[edit]

InHTML (andSGML andXML), 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;.

Unicode

[edit]

Unicode provides variousless than symbols:[2]

SymbolUnicode nameCode Point
<LESS-THAN SIGNU+003C
LESS-THAN OR EQUAL TOU+2264
LESS-THAN OVER EQUAL TOU+2266
LESS-THAN BUT NOT EQUAL TOU+2268
MUCH LESS-THANU+226A
NOT LESS THANU+226E
NEITHER LESS-THAN NOR EQUAL TOU+2270
LESS-THAN OR EQUIVALENT TOU+2272
NEITHER LESS-THAN NOR EQUIVALENT TOU+2274
LESS-THAN WITH DOTU+22D6
VERY MUCH LESS-THANU+22D8
EQUAL TO OR LESS-THANU+22DC
LESS-THAN BUT NOT EQUIVALENT TOU+22E6
APL FUNCTIONAL SYMBOL QUAD LESS-THANU+2343
LESS-THAN ABOVE LEFTWARDS ARROWU+2976
LEFTWARDS ARROW THROUGH LESS-THANU+2977
LEFT ARC LESS-THAN BRACKETU+2993
DOUBLE RIGHT ARC LESS-THAN BRACKETU+2996
CIRCLED LESS-THANU+29C0
LESS-THAN WITH CIRCLE INSIDEU+2A79
LESS-THAN WITH QUESTION MARK ABOVEU+2A7B
LESS-THAN OR SLANTED EQUAL TOU+2A7D
⩿LESS-THAN OR SLANTED EQUAL TO WITH DOT INSIDEU+2A7F
LESS-THAN OR SLANTED EQUAL TO WITH DOT ABOVEU+2A81
LESS-THAN OR SLANTED EQUAL TO WITH DOT ABOVE RIGHTU+2A83
LESS-THAN OR APPROXIMATEU+2A85
LESS-THAN AND SINGLE-LINE NOT EQUAL TOU+2A87
LESS-THAN AND NOT APPROXIMATEU+2A89
LESS-THAN ABOVE SIMILAR OR EQUALU+2A8D
SLANTED EQUAL OR LESS-THANU+2A95
SLANTED EQUAL OR LESS-THAN WITH DOT INSIDEU+2A97
DOUBLE-LINE EQUAL TO OR LESS-THANU+2A99
DOUBLE-LINE SLANTED EQUAL TO OR LESS-THANU+2A9B
SIMILAR TO OR LESS-THANU+2A9D
SIMILAR ABOVE LESS-THAN ABOVE EQUALS SIGNU+2A9F
DOUBLE NESTED LESS-THANU+2AA1
DOUBLE NESTED LESS-THAN WITH UNDERBARU+2AA3
LESS-THAN CLOSED BY CURVEU+2AA6
LESS-THAN CLOSED BY CURVE ABOVE SLANTED EQUALU+2AA8
TRIPLE NESTED LESS-THANU+2AF7
DOUBLE-LINE SLANTED LESS-THAN OR EQUAL TOU+2AF9
SMALL LESS-THAN SIGNU+FE64
FULLWIDTH LESS-THANU+FF1C

The less-than sign may be seen for an approximation of the openingangle bracket,. True angle bracket characters, as required inlinguistics notation, are expected in formal texts.

Mathematics

[edit]

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.

The less-than-sign is sometimes used to represent atotal order,partial order orpreorder. However, the symbol{\displaystyle \prec } is often used when it would be confusing or not convenient to use<. In mathematical writing usingLaTeX, theTeX command is\prec. The Unicodecode point isU+227A PRECEDES.

See also

[edit]

References

[edit]
  1. ^"XML Path Language (XPath) 2.0 (Second Edition)".www.w3.org. W3C. 14 December 2010. Archived fromthe original on 7 October 2022. Retrieved29 October 2019.
  2. ^"Less than symbol".Archived from the original on 2023-05-16. Retrieved2023-06-06.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Less-than_sign&oldid=1338386449"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp