# BigInteger.GreaterThanOrEqual 演算子

## オーバーロード

 GreaterThanOrEqual(Int64, BigInteger) 64 ビット符号付き整数が BigInteger 値以上かどうかを示す値を返します。Returns a value that indicates whether a 64-bit signed integer is greater than or equal to a BigInteger value. GreaterThanOrEqual(BigInteger, Int64) BigInteger 値が 64 ビット符号付き整数値以上かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit signed integer value. GreaterThanOrEqual(BigInteger, BigInteger) BigInteger 値がもう 1 つの BigInteger 値以上かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is greater than or equal to another BigInteger value. GreaterThanOrEqual(BigInteger, UInt64) BigInteger 値が 64 ビット符号なし整数値以上かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit unsigned integer value. GreaterThanOrEqual(UInt64, BigInteger) 64 ビット符号なし整数が BigInteger 値以上かどうかを示す値を返します。Returns a value that indicates whether a 64-bit unsigned integer is greater than or equal to a BigInteger value.

## GreaterThanOrEqual(Int64, BigInteger)

64 ビット符号付き整数が BigInteger 値以上かどうかを示す値を返します。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``

left
Int64

right
BigInteger

#### 戻り値

Boolean

`true``left` より大きい場合は `right`。それ以外の場合は `false``true` if `left` is greater than `right`; otherwise, `false`.

### 注釈

GreaterThanOrEqual メソッドは、BigInteger 値の "以上" 演算子の演算を定義します。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;
}
``````
``````Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If number >= bigNumber Then
' Do something
End If
``````

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(Int64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. 次の例に示すように、一部の言語では、GreaterThanOrEqual(Int64, BigInteger) メソッドを直接呼び出すこともできます。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
``````

`left`ByteInt16Int32SByteUInt16、または UInt32 の値の場合、操作の実行時に暗黙的に Int64 値に変換されます。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.

この演算子の同等のメソッドは BigInteger.CompareTo(Int64)です。The equivalent method for this operator is BigInteger.CompareTo(Int64).

## GreaterThanOrEqual(BigInteger, Int64)

BigInteger 値が 64 ビット符号付き整数値以上かどうかを示す値を返します。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``

left
BigInteger

right
Int64

#### 戻り値

Boolean

`true``left` より大きい場合は `right`。それ以外の場合は `false``true` if `left` is greater than `right`; otherwise, `false`.

### 注釈

GreaterThanOrEqual メソッドは、BigInteger 値の "以上" 演算子の演算を定義します。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;
}
``````
``````Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If bigNumber >= number Then
' Do something
End If
``````

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(Int64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. 次の例に示すように、一部の言語では、GreaterThanOrEqual(BigInteger, Int64) メソッドを直接呼び出すこともできます。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
``````

`right`ByteInt16Int32SByteUInt16、または UInt32 の値の場合、操作の実行時に暗黙的に Int64 値に変換されます。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.

この演算子の同等のメソッドは BigInteger.CompareTo(Int64)です。The equivalent method for this operator is BigInteger.CompareTo(Int64).

## GreaterThanOrEqual(BigInteger, BigInteger)

BigInteger 値がもう 1 つの BigInteger 値以上かどうかを示す値を返します。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);``
``static member ( >= ) : System.Numerics.BigInteger * System.Numerics.BigInteger -> bool``
``Public Shared Operator >= (left As BigInteger, right As BigInteger) As Boolean``

left
BigInteger

right
BigInteger

#### 戻り値

Boolean

`true``left` より大きい場合は `right`。それ以外の場合は `false``true` if `left` is greater than `right`; otherwise, `false`.

### 注釈

GreaterThanOrEqual メソッドは、BigInteger 値の "以上" 演算子の演算を定義します。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
``````
``````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
``````

カスタム演算子をサポートしない言語では、代わりに BigInteger.Compare メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.Compare method instead. 次の例に示すように、一部の言語では、GreaterThanOrEqual(BigInteger, BigInteger) メソッドを直接呼び出すこともできます。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
``````

この演算子の同等のメソッドは BigInteger.CompareTo(BigInteger)です。The equivalent method for this operator is BigInteger.CompareTo(BigInteger).

## GreaterThanOrEqual(BigInteger, UInt64)

この API は CLS 準拠ではありません。

BigInteger 値が 64 ビット符号なし整数値以上かどうかを示す値を返します。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);``````
``static member ( >= ) : System.Numerics.BigInteger * uint64 -> bool``
``Public Shared Operator >= (left As BigInteger, right As ULong) As Boolean``

left
BigInteger

right
UInt64

#### 戻り値

Boolean

`true``left` より大きい場合は `right`。それ以外の場合は `false``true` if `left` is greater than `right`; otherwise, `false`.

### 注釈

GreaterThanOrEqual メソッドは、BigInteger 値の "以上" 演算子の演算を定義します。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
}
``````
``````Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 2)
Dim number As ULong = UInt64.MaxValue
If bigNumber >= number Then
' Do something
End If
``````

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(UInt64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. 次の例に示すように、一部の言語では、GreaterThanOrEqual(BigInteger, UInt64) メソッドを直接呼び出すこともできます。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
``````

この演算子の同等のメソッドは BigInteger.CompareTo(UInt64)です。The equivalent method for this operator is BigInteger.CompareTo(UInt64).

## GreaterThanOrEqual(UInt64, BigInteger)

この API は CLS 準拠ではありません。

64 ビット符号なし整数が BigInteger 値以上かどうかを示す値を返します。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);``````
``static member ( >= ) : uint64 * System.Numerics.BigInteger -> bool``
``Public Shared Operator >= (left As ULong, right As BigInteger) As Boolean``

left
UInt64

right
BigInteger

#### 戻り値

Boolean

`true``left` より大きい場合は `right`。それ以外の場合は `false``true` if `left` is greater than `right`; otherwise, `false`.

### 注釈

GreaterThanOrEqual メソッドは、BigInteger 値の "以上" 演算子の演算を定義します。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
}
``````
``````Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 2)
Dim number As ULong = UInt64.MaxValue
If number >= bigNumber Then
' Do something
End If
``````

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(UInt64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. 次の例に示すように、一部の言語では、GreaterThanOrEqual(UInt64, BigInteger) メソッドを直接呼び出すこともできます。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
``````

この演算子の同等のメソッドは BigInteger.CompareTo(UInt64)です。The equivalent method for this operator is BigInteger.CompareTo(UInt64).