LessThan[y]
is an operator form that yields x<y when applied to an expression x.
LessThan
LessThan[y]
is an operator form that yields x<y when applied to an expression x.
Examples
open all close allBasic Examples (3)
Scope (4)
Use LessThan with numbers:
LessThan[10][6]Use LessThan with numeric Quantity objects:
LessThan[Quantity[1, "Hour"]][Quantity[50, "Minutes"]]Use LessThan with dates:
LessThan[Today][Yesterday]LessThan[DateObject[{2015, 8, 1}, "Day", "Gregorian", -6.]][DateObject[{2015, 6, 1}, "Day", "Gregorian", -6.]]LessThan[5][x]LessThan[x][5]Applications (1)
Properties & Relations (2)
Obtain the populations of the class of countries with an area smaller than 40 square kilometers:
EntityValue[EntityClass["Country", {"Area" -> LessThan[Quantity[40, "Kilometers" ^ 2]]}], "Population"]Total[%]Compare the alternative notations:
Select[{0, 5, 10, 15}, Less[#, 10]&]Select[{0, 5, 10, 15}, LessThan[10]]Select[LessThan[10]][{0, 5, 10, 15}]Related Guides
History
Text
Wolfram Research (2015), LessThan, Wolfram Language function, https://reference.wolfram.com/language/ref/LessThan.html.
CMS
Wolfram Language. 2015. "LessThan." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LessThan.html.
APA
Wolfram Language. (2015). LessThan. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LessThan.html
BibTeX
@misc{reference.wolfram_2026_lessthan, author="Wolfram Research", title="{LessThan}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/LessThan.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_lessthan, organization={Wolfram Research}, title={LessThan}, year={2015}, url={https://reference.wolfram.com/language/ref/LessThan.html}, note=[Accessed: 12-June-2026]}