Help Center

CComplex.CAbsmethod

Returns the magnitude of this complex number.

Numeric DatatypesmethodCComplex.incdocumented

Syntax

FUNCTION CAbs () AS DOUBLE
Also documented as CMagnitude — one description covers them all.

Description

Returns the magnitude of this complex number.

Example

DIM cpx AS CComplex = CComplex(2, 3) PRINT cpx.CAbs Output: 3.60555127546399

Reference

  • Include file CComplex.inc
  • Defined in AfxNova/CComplex.inc:906
  • Documented in Numeric Datatypes/CComplex Class.md
  • Topic: CComplex Class