C# Complex Implicit(Int16 to Complex)

Description

Complex Implicit(Int16 to Complex) Defines an implicit conversion of a 16-bit signed integer to a complex number.

Syntax

Complex.Implicit(Int16 to Complex) has the following syntax.


public static implicit operator Complex (
  short value
)

Parameters

Complex.Implicit(Int16 to Complex) has the following parameters.

  • value - The value to convert to a complex number.

Returns

Complex.Implicit(Int16 to Complex) method returns An object that contains the value of the value parameter as its real part and zero as its imaginary part.

Example


using System;/* ww  w .j  av  a2  s.  co m*/
using System.Numerics;

public class Example
{
   public static void Main()
   {
        short shortValue = 16024;
        System.Numerics.Complex c1 = shortValue;
        Console.WriteLine(c1);

   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex