RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarCmplx.VarComplexSimplify Function

Reduces a Variant that represents a complex number to one that represents a real value, if possible.

Pascal
function VarComplexSimplify(const AValue: Variant): Variant;
C++
Variant VarComplexSimplify(const Variant AValue);

VarCmplx

Use VarComplexSimplify to convert a complex number to a real value when possible. VarComplexSimplify checks whether the Variant specified by AValue represents a complex number that has no imaginary part. If so, it returns a Variant whose value is simply a real number. If AValue does not represent a complex number, or if AValue represents a complex number with a nonzero imaginary part, VarComplexSimplify returns AValue. 

 

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