RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarCmplx.VarIsComplex Function

Indicates whether a Variant stores its data internally as a complex number.

Pascal
function VarIsComplex(const AValue: Variant): Boolean;
C++
Boolean VarIsComplex(const Variant AValue);

VarCmplx

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!