klyn.math.Complex.toString
method
public override toString() as String
Description

Returns a string representation of the complex number.

Returns

A string in the format real + imaginaryj (or real - imaginaryj for a negative imaginary component). Each component uses its Float or Double display rules, including scientific notation and .0 on integral mantissas. Negative zero retains its sign in both components.

Example
c = Complex<Double>(3, 4)
print(c.toString())  # Output: 3.0 + 4.0j
print(Complex<Double>(0.0, -0.0))  # Output: 0.0 - 0.0j