System.VarCmplx.VarIsComplex
Delphi
function VarIsComplex(const AValue: Variant): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall VarIsComplex(const System::Variant &AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.VarCmplx.pas System.VarCmplx.hpp |
System.VarCmplx | System.VarCmplx |
Description
Indicates whether a Variant stores its data internally as a complex number.
VarIsComplex returns true if AValue represents a complex number (that is, if it has a VarType of VarComplex).
Complex Variants are custom Variants that represent complex numbers. The Variant type supports direct manipulation using the addition, subtraction, multiplication, division (but not integer division), and negation operators. They have 5 published properties: Real, Imaginary, Radius, Theta, and FixedTheta. They can be cast to and from integer types, floating point types, string types, TDateTime values, and boolean values. In addition, the VarCmplx unit implements a number of global functions for operating on complex Variants.