11.3.127 =\= /2 [ISO]

Synopsis

+Expr1 =\= +Expr2

Succeeds if the results of evaluating Expr1 and Expr2 are not equal.

Arguments

Expr1
expr, must be ground
Expr2
expr, must be ground

Description

Evaluates Expr1 and Expr2 as arithmetic expressions and compares the results.

Exceptions

Arithmetic errors (see ref-ari-exc).

Examples

     | ?- 7 =\= 14/2.
     
     no
     | ?- 7 =\= 15/2.
     
     yes

See Also

ref-ari


Send feedback on this subject.