System.VarCmplx.VarComplexSign
Delphi
function VarComplexSign(const AValue: Variant): Variant;
C++
extern DELPHI_PACKAGE System::Variant __fastcall VarComplexSign(const System::Variant &AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.VarCmplx.pas System.VarCmplx.hpp |
System.VarCmplx | System.VarCmplx |
Description
Returns the sign of a complex number.
Use VarComplexSign to calculate the complex sign of the complex number given through the AValue parameter.
VarComplexSign returns a complex number whose value is equal to VarAsComplex(AValue) / VarComplexAbs(AValue). This is basically the complex number on the unit circle of the complex plane that is closest to AValue.