Mega Code Archive

 
Categories / C# / Data Types
 

Converts the value of the current complex number to its equivalent string representation in Cartesian form

using System; using System.Numerics; public class Example {    public static void Main()    {       Complex[] c = { new Complex(1.3, 1.1), new Complex(-1.1, -1.2) };       foreach (Complex c1 in c)          Console.WriteLine(c1.ToString());    } }