C# BigInteger GreaterThan(UInt64, BigInteger)

Description

BigInteger GreaterThan(UInt64, BigInteger) Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer.

Syntax

BigInteger.GreaterThan(UInt64, BigInteger) has the following syntax.


public static bool operator >(
  ulong left,
  BigInteger right
)

Parameters

BigInteger.GreaterThan(UInt64, BigInteger) has the following parameters.

  • left - The first value to compare.
  • right - The second value to compare.

Returns

BigInteger.GreaterThan(UInt64, BigInteger) method returns true if left is greater than right; otherwise, false.

Example


using System;//from  www .  j  a  v a 2  s. c  o  m
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(number > bigNumber);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex