# smallerEq() Function & Examples

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

## smallerEq

#### x <= y

#### smallerEq(x, y)

Try it yourself:

```calculio
2 <= 1+1
2 < 1+1
a = 3.2
b = 6-2.8
(a <= b)
```

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

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

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

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

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

---

## smallerEq(): Less Than or Equal To

**smallerEq()** tests an inclusive upper bound. It returns true when the first value is less than or equal to the second, making it useful for limits and allowed ranges.

## Inclusive comparisons

Use [smaller()](https://calcul.io/function/smaller/index.md) when equality should fail and [largerEq()](https://calcul.io/function/largerEq/index.md) for a closed lower bound. Combine tests with [and()](https://calcul.io/function/and/index.md) to validate a range.

Ensure units are comparable, using [to()](https://calcul.io/function/to/index.md) where necessary. For calculated decimals, establish a tolerance instead of relying on formatting.

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