_LEQ: integer x integer -> boolean
_LEQ: real x real -> boolean
_LEQ: string x string -> boolean
x <= y
The binary infix operator "<=" realises the "less than or equal" relation on numerical and string objects. The result is TRUE if x is less than or equal y, FALSE otherwise.
On integer and real objects, "<=" is defined in the usual way; though caution is advised when using reals, since by inherent inaccuracies of real arithmetics, the result might be sometimes incorrect. Mixing integer and real objects is allowed, in this case, an automatic type conversion from integer to real is done by the system.
On string objects, "<=" is defined with respect to the standard lexicographic ordering on ASCII encoded character strings. Thus basically, strings are ordered as they would be in a dictionary; however, numerals appear before uppercase letters and those before lowercase letters. For the exact positions of special characters, please refer to any ASCII table.
In expressions, "<=" binds stronger than the boolean operators, but weeker than the arithmetic, length, or list access operators.
> 21 <= 12
> 0.4 <= 0.3
> 1 <= 1.0
> "any string" <= "Any String"
> "any" <= "any string"
See also: Operator "<" (_LE), Operator ">=" (_GEQ), Operators and Expressions.