unequal

x != y

unequal(x, y)

Try it yourself:


unequal: test whether values differ

unequal(a, b) returns true when two values are not equal. It is the logical complement of equality and keeps conditions readable.

Examples

unequal(2, 3) is true, while unequal(2, 2) is false. For structured values, understand whether equality is deep or reference-based.

Related comparisons

Use equal for equality, compare() for ordering, equalText for text, and isZero() for a zero-specific test. abs() helps construct tolerance comparisons.

Caveat

Exact inequality is often unsuitable for measured floating-point values. Compare the magnitude of a difference to a tolerance instead.

Try Unequal 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