smaller

x < y

smaller(x, y)

Try it yourself:


smaller(): Strict Less-Than Test

smaller() returns true when its first value is strictly less than the second. It supports thresholds, range checks, and validation rules.

Strict boundary logic

smaller(5, 5) is false; use smallerEq() for an inclusive boundary. Combine comparisons with and() for an interval and larger() for the opposite test.

Decimal results near a boundary can be affected by precision. Use abs() and a tolerance rather than comparing rounded display values.

Try Smaller in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions