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().

All functions