Redigeeri

Jagamisviis:


BigInteger.GreaterThanOrEqual Operator

Definition

Returns a value that indicates whether a specified value is greater than or equal to another specified value.

Overloads

GreaterThanOrEqual(Int64, BigInteger)

Returns a value that indicates whether a 64-bit signed integer is greater than or equal to a BigInteger value.

GreaterThanOrEqual(BigInteger, Int64)

Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit signed integer value.

GreaterThanOrEqual(BigInteger, BigInteger)

Returns a value that indicates whether a BigInteger value is greater than or equal to another BigInteger value.

GreaterThanOrEqual(BigInteger, UInt64)

Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit unsigned integer value.

GreaterThanOrEqual(UInt64, BigInteger)

Returns a value that indicates whether a 64-bit unsigned integer is greater than or equal to a BigInteger value.

GreaterThanOrEqual(Int64, BigInteger)

Source:
BigInteger.cs
Source:
BigInteger.cs
Source:
BigInteger.cs

Returns a value that indicates whether a 64-bit signed integer is greater than or equal to a BigInteger value.

public:
 static bool operator >=(long left, System::Numerics::BigInteger right);
public static bool operator >= (long left, System.Numerics.BigInteger right);
static member ( >= ) : int64 * System.Numerics.BigInteger -> bool
Public Shared Operator >= (left As Long, right As BigInteger) As Boolean

Parameters

left
Int64

The first value to compare.

right
BigInteger

The second value to compare.

Returns

true if left is greater than right; otherwise, false.

Remarks

The GreaterThanOrEqual method defines the operation of the greater than or equal to operator for BigInteger values. It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(Int32.MaxValue, 4);
long number = Int64.MaxValue;
if (number >= bigNumber) {
   // Do something;
}
let bigNumber = BigInteger.Pow(Int32.MaxValue, 4)
let number = Int64.MaxValue

if bigint number >= bigNumber then
    // Do something;
Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If number >= bigNumber Then
   ' Do something
End If

Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. Some languages can also call the GreaterThanOrEqual(Int64, BigInteger) method directly, as the following example shows.

Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If BigInteger.op_GreaterThanOrEqual(number,bigNumber) Then
   ' Do something
End If

If left is a Byte, Int16, Int32, SByte, UInt16, or UInt32 value, it is implicitly converted to an Int64 value when the operation is performed.

The equivalent method for this operator is BigInteger.CompareTo(Int64).

See also

Applies to

GreaterThanOrEqual(BigInteger, Int64)

Source:
BigInteger.cs
Source:
BigInteger.cs
Source:
BigInteger.cs

Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit signed integer value.

public:
 static bool operator >=(System::Numerics::BigInteger left, long right);
public static bool operator >= (System.Numerics.BigInteger left, long right);
static member ( >= ) : System.Numerics.BigInteger * int64 -> bool
Public Shared Operator >= (left As BigInteger, right As Long) As Boolean

Parameters

left
BigInteger

The first value to compare.

right
Int64

The second value to compare.

Returns

true if left is greater than right; otherwise, false.

Remarks

The GreaterThanOrEqual method defines the operation of the greater than or equal to operator for BigInteger values. It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(Int32.MaxValue, 4);
long number = Int64.MaxValue;
if (bigNumber >= number) {
   // Do something;
}
let bigNumber = BigInteger.Pow(Int32.MaxValue, 4)
let number = Int64.MaxValue

if bigNumber >= number then
    // Do something;
Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If bigNumber >= number Then
   ' Do something
End If

Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. Some languages can also call the GreaterThanOrEqual(BigInteger, Int64) method directly, as the following example shows.

Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If BigInteger.op_GreaterThanOrEqual(bigNumber,number) Then
   ' Do something
End If

If right is a Byte, Int16, Int32, SByte, UInt16, or UInt32 value, it is implicitly converted to an Int64 value when the operation is performed.

The equivalent method for this operator is BigInteger.CompareTo(Int64).

See also

Applies to

GreaterThanOrEqual(BigInteger, BigInteger)

Source:
BigInteger.cs
Source:
BigInteger.cs
Source:
BigInteger.cs

Returns a value that indicates whether a BigInteger value is greater than or equal to another BigInteger value.

public:
 static bool operator >=(System::Numerics::BigInteger left, System::Numerics::BigInteger right);
public:
 static bool operator >=(System::Numerics::BigInteger left, System::Numerics::BigInteger right) = System::Numerics::IComparisonOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, bool>::op_GreaterThanOrEqual;
public static bool operator >= (System.Numerics.BigInteger left, System.Numerics.BigInteger right);
static member ( >= ) : System.Numerics.BigInteger * System.Numerics.BigInteger -> bool
Public Shared Operator >= (left As BigInteger, right As BigInteger) As Boolean

Parameters

left
BigInteger

The first value to compare.

right
BigInteger

The second value to compare.

Returns

true if left is greater than right; otherwise, false.

Implements

Remarks

The GreaterThanOrEqual method defines the operation of the greater than or equal to operator for BigInteger values. It enables code such as the following:

BigInteger number1 = 945834723;
BigInteger number2 = 345145625;
BigInteger number3 = 945834724;
BigInteger number4 = 945834723;
Console.WriteLine(number1 >= number2);             // Displays True
Console.WriteLine(number1 >= number3);             // Displays False
Console.WriteLine(number1 >= number4);             // Displays True
let number1 = 945834723I
let number2 = 345145625I
let number3 = 945834724I
let number4 = 945834723I
printfn $"{number1 >= number2}" // Displays True
printfn $"{number1 >= number3}" // Displays False
printfn $"{number1 >= number4}" // Displays True
Dim number1 As BigInteger = 945834723
Dim number2 As BigInteger = 345145625
Dim number3 As BigInteger = 945834724 
Dim number4 As BigInteger = 945834723
Console.WriteLine(number1 >= number2)                 ' Displays True
Console.WriteLine(number1 >= number3)                 ' Displays False
Console.WriteLine(number1 >= number4)                 ' Displays True

Languages that do not support custom operators can call the BigInteger.Compare method instead. Some languages can also call the GreaterThanOrEqual(BigInteger, BigInteger) method directly, as the following example shows.

Dim numberA As BigInteger = 945834723
Dim numberB As BigInteger = 345145625
Dim numberC As BigInteger = 945834724 
Dim numberD As BigInteger = 945834723
Console.WriteLine( _
        BigInteger.op_GreaterThanOrEqual(numberA, numberB))    ' Displays True
Console.WriteLine( _
        BigInteger.op_GreaterThanOrEqual(numberA, numberC))    ' Displays False
Console.WriteLine( _
        BigInteger.op_GreaterThanOrEqual(numberA, numberD))    ' Displays True

The equivalent method for this operator is BigInteger.CompareTo(BigInteger).

See also

Applies to

GreaterThanOrEqual(BigInteger, UInt64)

Source:
BigInteger.cs
Source:
BigInteger.cs
Source:
BigInteger.cs

Important

This API is not CLS-compliant.

Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit unsigned integer value.

public:
 static bool operator >=(System::Numerics::BigInteger left, System::UInt64 right);
[System.CLSCompliant(false)]
public static bool operator >= (System.Numerics.BigInteger left, ulong right);
[<System.CLSCompliant(false)>]
static member ( >= ) : System.Numerics.BigInteger * uint64 -> bool
Public Shared Operator >= (left As BigInteger, right As ULong) As Boolean

Parameters

left
BigInteger

The first value to compare.

right
UInt64

The second value to compare.

Returns

true if left is greater than right; otherwise, false.

Attributes

Remarks

The GreaterThanOrEqual method defines the operation of the greater than or equal to operator for BigInteger values. It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(Int32.MaxValue, 2);
ulong number = UInt64.MaxValue;
if (bigNumber >= number) {
   // Do something
}
let bigNumber = BigInteger.Pow(Int32.MaxValue, 2)
let number = UInt64.MaxValue

if bigNumber >= number then
    // Do something
Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 2)
Dim number As ULong = UInt64.MaxValue
If bigNumber >= number Then
   ' Do something
End If

Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. Some languages can also call the GreaterThanOrEqual(BigInteger, UInt64) method directly, as the following example shows.

Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 2)
Dim number As ULong = UInt64.MaxValue
If BigInteger.op_GreaterThanOrEqual(bigNumber, number) Then
   ' Do something
End If

The equivalent method for this operator is BigInteger.CompareTo(UInt64).

See also

Applies to

GreaterThanOrEqual(UInt64, BigInteger)

Source:
BigInteger.cs
Source:
BigInteger.cs
Source:
BigInteger.cs

Important

This API is not CLS-compliant.

Returns a value that indicates whether a 64-bit unsigned integer is greater than or equal to a BigInteger value.

public:
 static bool operator >=(System::UInt64 left, System::Numerics::BigInteger right);
[System.CLSCompliant(false)]
public static bool operator >= (ulong left, System.Numerics.BigInteger right);
[<System.CLSCompliant(false)>]
static member ( >= ) : uint64 * System.Numerics.BigInteger -> bool
Public Shared Operator >= (left As ULong, right As BigInteger) As Boolean

Parameters

left
UInt64

The first value to compare.

right
BigInteger

The second value to compare.

Returns

true if left is greater than right; otherwise, false.

Attributes

Remarks

The GreaterThanOrEqual method defines the operation of the greater than or equal to operator for BigInteger values. It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(Int32.MaxValue, 2);
ulong number = UInt64.MaxValue;
if (number >= bigNumber) {
   // Do something
}
let bigNumber = BigInteger.Pow(Int32.MaxValue, 2)
let number = UInt64.MaxValue

if bigint number >= bigNumber then
    // Do something
Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 2)
Dim number As ULong = UInt64.MaxValue
If number >= bigNumber Then
   ' Do something
End If

Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. Some languages can also call the GreaterThanOrEqual(UInt64, BigInteger) method directly, as the following example shows.

Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 2)
Dim number As ULong = UInt64.MaxValue
If BigInteger.op_GreaterThanOrEqual(number, bigNumber) Then
   ' Do something
End If

The equivalent method for this operator is BigInteger.CompareTo(UInt64).

See also

Applies to