# isPositive() Function & Examples

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

## isPositive

#### isPositive(x)

Try it yourself:

```calculio
isPositive(2)
isPositive(0)
isPositive(-4)
isPositive([3, 0.5, -2])
```

---

## isPositive(): test whether a number exceeds zero

**isPositive(x)** returns true when x is strictly greater than zero. It is useful for dimensions, rates, denominators, and quantities that cannot be negative.

## Zero is separate

`isPositive(0)` is false. If zero is allowed, test it separately with [isZero()](https://calcul.io/function/isZero/index.md). Use [isNegative()](https://calcul.io/function/isNegative/index.md) for the opposite sign and [sign()](https://calcul.io/function/sign/index.md) when you need the three-way result.

## Validation

Confirm the value is usable with [isFinite()](https://calcul.io/function/isFinite/index.md) and [isNumeric()](https://calcul.io/function/isNumeric/index.md) before applying it to [log()](https://calcul.io/function/log/index.md) or a division. Use a tolerance for values calculated in floating point.

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