Help Center

Comparison operatorsoperator

Compares complex numbers.

Numeric DatatypesoperatorAfxComplex.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

OPERATOR = (BYREF z1 AS _complex, BYREF z2 AS _complex) AS BOOLEAN
OPERATOR <> (BYREF z1 AS _complex, BYREF z2 AS _complex) AS BOOLEAN

Description

Compares complex numbers for equality or inequality.

Example

DIM c1 AS _complex = (1, 2) DIM c2 AS _complex = (3, 4) IF c1 = c2 THEN PRINT "equal" ELSE PRINT "different"

Reference