C# BigInteger GreaterThanOrEqual(UInt64, BigInteger)

Description

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

Syntax

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


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

Parameters

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

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

Returns

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

Example


/*from  w w  w  .jav  a2  s . c  o  m*/
using System;
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