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