RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarCmplx.ComplexNumberSymbolBeforeImaginary Variable

Indicates the placement of the symbol that represents the imaginary part of a complex number.

Pascal
ComplexNumberSymbolBeforeImaginary: Boolean = False;
C++
Boolean ComplexNumberSymbolBeforeImaginary = False;

Custom Variants that represent complex numbers use ComplexNumberSymbolBeforeImaginary when converting between complex values and strings.  

When ComplexNumberSymbolBeforeImaginary is false (the default), the symbol appears after the imaginary part, as in '3.4 + 2i'.  

When ComplexNumberSymbolBeforeImaginary is true, the symbol appears before the imaginary part, as in '3.4 + i2'. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!