Math387::StrToCplx Function

TCplx StrToCplx(const DewString &Source);

Converts a string to complex number.

#NameTypeDescription
1Sourceconst DewString &

Returns: string, converted to complex number.

Remarks:

The complex number must be in the following format: a + bi. Valid examples: +6, 6i, 2.4E-2i, -6E+2+2.4E-2i, 2+3i.

See Also: Math387::CplxToStr
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler