C# BigInteger Implicit(Int16 to BigInteger)

Description

BigInteger Implicit(Int16 to BigInteger) Defines an implicit conversion of a signed 16-bit integer to a BigInteger value.

Syntax

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


public static implicit operator BigInteger (
  short value
)

Parameters

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

  • value - The value to convert to a BigInteger.

Returns

BigInteger.Implicit(Int16 to BigInteger) method returns An object that contains the value of the value parameter.

Example


using System;//from  w w  w  .ja  va 2 s. c om
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        short shortValue = 25064;
        BigInteger number = shortValue;
        number += shortValue;
        Console.WriteLine(number < shortValue);           // Displays False
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex