C# BigInteger Implicit(UInt32 to BigInteger)

Description

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

Syntax

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


public static implicit operator BigInteger (
  uint value
)

Parameters

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

  • value - The value to convert to a BigInteger.

Returns

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

Example


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

public class Example
{
   public static void Main()
   {
        uint uIntValue = 65000;
        BigInteger number = uIntValue;
        number = BigInteger.Multiply(number, uIntValue);
        Console.WriteLine(number == uIntValue);           // Displays False
    
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex