C# BigInteger GreaterThan(BigInteger, BigInteger)
Description
BigInteger GreaterThan(BigInteger, BigInteger)
Returns
a value that indicates whether a BigInteger value is greater than another
BigInteger value.
Syntax
BigInteger.GreaterThan(BigInteger, BigInteger)
has the following syntax.
public static bool operator >(
BigInteger left,
BigInteger right
)
Parameters
BigInteger.GreaterThan(BigInteger, BigInteger)
has the following parameters.
left
- The first value to compare.right
- The second value to compare.
Returns
BigInteger.GreaterThan(BigInteger, BigInteger)
method returns true if left is greater than right; otherwise, false.
Example
using System;/*from w w w.j av a2 s .c o m*/
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger number1 = 1231231233;
BigInteger number2 = 1231231235;
BigInteger number3 = 1231231234;
Console.WriteLine(number1 > number2);
Console.WriteLine(number1 > number3);
}
}
The code above generates the following result.