le
Returns whether the receiver is less than or equal to another decimal value.
API Reference
Signature
Parameters
Returns
Returns true when the receiver is less than or equal to the comparison value; otherwise returns false.
Throws
- Throws if
baseis invalid. - Throws if the comparison value is invalid while
STRICTistrue.
Agent Contract
Agent Notes
- Use
leinstead of JavaScript<=onArithvalues. - Use
ltfor strict less-than checks. - Use string inputs for exact decimal values, especially money-like values.