larger

x > y

larger(x, y)

Try it yourself:


larger(): Testing Whether One Value Is Greater

larger() returns true when its first value is strictly greater than the second. It is a concise building block for thresholds, range checks, and conditional rules; larger(8, 5) is true, while larger(5, 5) is false.

Strict comparisons

Use largerEq() when equality should pass. Pair larger with smaller() and and() to express an open interval. Values must be comparable and have compatible units.

Floating-point results near a boundary need care. Instead of treating a rounded display value as exact, compare with a chosen tolerance using abs() and subtract().

Try Larger 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