C# BigInteger Implicit(Int32 to BigInteger)
Description
BigInteger Implicit(Int32 to BigInteger)
Defines an
implicit conversion of a signed 32-bit integer to a BigInteger value.
Syntax
BigInteger.Implicit(Int32 to BigInteger)
has the following syntax.
public static implicit operator BigInteger (
int value
)
Parameters
BigInteger.Implicit(Int32 to BigInteger)
has the following parameters.
value
- The value to convert to a BigInteger.
Returns
BigInteger.Implicit(Int32 to BigInteger)
method returns An object that contains the value of the value parameter.
Example
using System;/*from w ww .j av a 2 s . co m*/
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
int intValue = 65000;
BigInteger number = intValue;
number = BigInteger.Multiply(number, intValue);
Console.WriteLine(number == intValue); // Displays False
}
}
The code above generates the following result.