isNegative

isNegative(x)

Try it yourself:


isNegative(): test whether a number is below zero

isNegative(x) returns true when x is less than zero. It makes sign-sensitive formulas and validation rules easy to read.

Typical uses

Reject negative lengths, determine direction, or branch on a financial loss. isNegative(-3) is true; zero is neither negative nor positive.

Related checks

Use isPositive() for values above zero and isZero() for the remaining case. sign() returns the sign itself, while abs() removes it. Check isNumeric() first for untrusted input.

Boundary care

Very small floating-point values can be negative because of rounding. Use a tolerance when the real-world rule is “effectively zero”.

Try Is Negative 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