Complex.toString

string toString() const @safe

Converts the complex number to a string representation.

The second form of this function is usually not called directly; instead, it is used via format, as shown in the examples below. Supported format characters are 'e', 'f', 'g', 'a', and 's'.

See the std.format and format documentation for more information.

void toString(Writer, Char)(scope Writer w, scope const ref FormatSpec!Char formatSpec) if (isOutputRange!(Writer, const(Char)[])) const

ditto