C# BigInteger Implicit(UInt64 to BigInteger)

Description

BigInteger Implicit(UInt64 to BigInteger) Defines an implicit conversion of a 64-bit unsigned integer to a BigInteger value.

Syntax

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


public static implicit operator BigInteger (
  ulong value
)

Parameters

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

  • value - The value to convert to a BigInteger.

Returns

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

Example


//w  ww.  j a va  2 s.c o  m
using System;
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        ulong uLongValue = 1358712354982;
        BigInteger number = uLongValue;
        number = number * 2 - uLongValue;
        Console.WriteLine(number * uLongValue / uLongValue);
    
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex