Math387.StrToCplx Method

function StrToCplx(const Source: string): TCplx;

Converts a string to complex number.

#NameTypeDescription
1Sourcestring

Returns: TCplx (complex) - 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