display | more...

A relational operator that stands for "less than or equal to." This is used quite frequently in many programming languages, which inherited it from mathematics. I know that Visual Basic, Java, JavaScript, SQL, and C/C++ use it. The query builder I use in AS/400 uses le.

Used in an expression in some languages, this operator yields a boolean result, i.e., true or false. In others, it returns an integer value that you can pretend is a boolean. I have seen return values of 0 and 1 but also 0 and -1. It depends. A mathematical example:

10 <= 5 would evaluate to false whereas
5 <= 10 would evaluate to true

Also known as ≤ in some circles.

You can represent these symbols in HTML by means of the following HTML symbol references: &lt;= or &le; or &#8804;.

Thanks to mblase and Inoshiro_K and others for keeping me straight on the finer points.

Log in or register to write something here or to contact authors.