C# BigInteger Implicit(SByte to BigInteger)

Description

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

Syntax

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


public static implicit operator BigInteger (
  sbyte value
)

Parameters

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

  • value - The value to convert to a BigInteger.

Returns

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

Example


using System;/*from   w ww  .  ja  v  a  2 s  . c o m*/
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        sbyte sByteValue = -12;
        BigInteger number = BigInteger.Pow(sByteValue, 3);
        Console.WriteLine(number < sByteValue);            // Displays True
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex