# larger() Function & Examples

Use the larger() relational function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## larger

#### x > y

#### larger(x, y)

Try it yourself:

```calculio
2 > 3
5 > 2*2
a = 3.3
b = 6-2.8
(a > b)
(b < a)
5 cm > 2 inch
```

[equal](https://calcul.io/function/equal/index.md)

[unequal](https://calcul.io/function/unequal/index.md)

[smaller](https://calcul.io/function/smaller/index.md)

[compare](https://calcul.io/function/compare/index.md)

---

## 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()](https://calcul.io/function/largerEq/index.md) when equality should pass. Pair larger with [smaller()](https://calcul.io/function/smaller/index.md) and [and()](https://calcul.io/function/and/index.md) 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()](https://calcul.io/function/abs/index.md) and [subtract()](https://calcul.io/function/subtract/index.md).

[All functions](https://calcul.io/functions/index.md)
