C# Complex Zero
Description
Complex Zero
Returns a new Complex instance with a real
number equal to zero and an imaginary number equal to zero.
Syntax
Complex.Zero
has the following syntax.
public static readonly Complex Zero
Example
using System;/*from w w w.jav a2 s .c om*/
using System.Numerics;
public class Example
{
public static void Main()
{
Complex value = Complex.Zero;
Console.WriteLine(value.ToString());
Complex value1 = new Complex(0, 0);
Console.WriteLine(value.Equals(value1));
}
}
The code above generates the following result.