Help Center

CComplex.CImagproperty

Gets/sets the imaginary part of a complex number.

Numeric DatatypespropertyCComplex.incdocumented

Syntax

PROPERTY CImag () AS DOUBLE
PROPERTY CImag (BYVAL x AS DOUBLE)

Parameters

NameDescription
xA double value.

Description

Gets/sets the imaginary part of a complex number.

Example

DIM cpx AS CComplex : cpx.CImag = 4 DIM d AS DOUBLE = cpx.CImag

Reference

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