C# BigInteger GreaterThan(Int64, BigInteger)
Description
BigInteger GreaterThan(Int64, BigInteger)
Returns
a value that indicates whether a 64-bit signed integer is greater than a BigInteger
value.
Syntax
BigInteger.GreaterThan(Int64, BigInteger)
has the following syntax.
public static bool operator >(
long left,
BigInteger right
)
Parameters
BigInteger.GreaterThan(Int64, BigInteger)
has the following parameters.
left
- The first value to compare.right
- The second value to compare.
Returns
BigInteger.GreaterThan(Int64, BigInteger)
method returns true if left is greater than right; otherwise, false.
Example
using System;//from ww w . j av a 2 s. co m
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger bigNumber = BigInteger.Pow(Int32.MaxValue, 4);
long number = Int64.MaxValue;
Console.WriteLine(number > bigNumber);
}
}
The code above generates the following result.