C# BigInteger GreaterThanOrEqual(BigInteger, BigInteger)

Description

BigInteger GreaterThanOrEqual(BigInteger, BigInteger) Returns a value that indicates whether a BigInteger value is greater than or equal to another BigInteger value.

Syntax

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


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

Parameters

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

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

Returns

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

Example


//  w  w  w  .  j a  va 2 s  .  c  om
using System;
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        BigInteger number1 = 941235834723;
        BigInteger number2 = 341235145625;
        BigInteger number3 = 945833214724;
        BigInteger number4 = 945831234723;
        Console.WriteLine(number1 >= number2);  
        Console.WriteLine(number1 >= number3);  
        Console.WriteLine(number1 >= number4);  
    
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex