BigInteger.GreaterThanOrEqual Operatore

Definizione

Restituisce un valore che indica se un valore specificato è maggiore o uguale a un altro valore specificato.

Overload

GreaterThanOrEqual(Int64, BigInteger)

Restituisce un valore che indica se un Signed Integer a 64 bit è maggiore o uguale a un valore BigInteger.

GreaterThanOrEqual(BigInteger, Int64)

Restituisce un valore che indica se un valore BigInteger è maggiore o uguale a un valore Signed Integer a 64 bit.

GreaterThanOrEqual(BigInteger, BigInteger)

Restituisce un valore che indica se un valore BigInteger è maggiore o uguale a un altro valore BigInteger.

GreaterThanOrEqual(BigInteger, UInt64)

Restituisce un valore che indica se un valore BigInteger è maggiore o uguale a un valore Unsigned Integer a 64 bit.

GreaterThanOrEqual(UInt64, BigInteger)

Restituisce un valore che indica se un Unsigned Integer a 64 bit è maggiore o uguale a un valore BigInteger.

GreaterThanOrEqual(Int64, BigInteger)

Restituisce un valore che indica se un Signed Integer a 64 bit è maggiore o uguale a un valore BigInteger.

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

Parametri

left
Int64

Primo valore da confrontare.

right
BigInteger

Secondo valore da confrontare.

Restituisce

Boolean

true se left è maggiore di right; in caso contrario, false.

Commenti

Il GreaterThanOrEqual metodo definisce l'operazione dell'operatore maggiore o uguale all'operatore per BigInteger i valori. Abilita il codice, ad esempio quanto segue:

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

Le lingue che non supportano operatori personalizzati possono invece chiamare il BigInteger.CompareTo(Int64) metodo. Alcuni linguaggi possono anche chiamare direttamente il metodo, come illustrato nell'esempio GreaterThanOrEqual(Int64, BigInteger) seguente.

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

Se left è un Bytevalore , Int32Int16UInt16SByteo UInt32 , viene convertito in modo implicito in un Int64 valore quando viene eseguita l'operazione.

Il metodo equivalente per questo operatore è BigInteger.CompareTo(Int64).

Vedi anche

Si applica a

GreaterThanOrEqual(BigInteger, Int64)

Restituisce un valore che indica se un valore BigInteger è maggiore o uguale a un valore Signed Integer a 64 bit.

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

Parametri

left
BigInteger

Primo valore da confrontare.

right
Int64

Secondo valore da confrontare.

Restituisce

Boolean

true se left è maggiore di right; in caso contrario, false.

Commenti

Il GreaterThanOrEqual metodo definisce l'operazione dell'operatore maggiore o uguale all'operatore per BigInteger i valori. Abilita il codice, ad esempio quanto segue:

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

Le lingue che non supportano operatori personalizzati possono invece chiamare il BigInteger.CompareTo(Int64) metodo. Alcuni linguaggi possono anche chiamare direttamente il metodo, come illustrato nell'esempio GreaterThanOrEqual(BigInteger, Int64) seguente.

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

Se right è un Bytevalore , Int32Int16UInt16SByteo UInt32 , viene convertito in modo implicito in un Int64 valore quando viene eseguita l'operazione.

Il metodo equivalente per questo operatore è BigInteger.CompareTo(Int64).

Vedi anche

Si applica a

GreaterThanOrEqual(BigInteger, BigInteger)

Restituisce un valore che indica se un valore BigInteger è maggiore o uguale a un altro valore BigInteger.

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>::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

Parametri

left
BigInteger

Primo valore da confrontare.

right
BigInteger

Secondo valore da confrontare.

Restituisce

Boolean

true se left è maggiore di right; in caso contrario, false.

Implementazioni

System.Numerics.IComparisonOperators`2.op_GreaterThanOrEqual(`0,`1)

Commenti

Il GreaterThanOrEqual metodo definisce l'operazione dell'operatore maggiore o uguale all'operatore per BigInteger i valori. Abilita il codice, ad esempio quanto segue:

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

Le lingue che non supportano operatori personalizzati possono invece chiamare il BigInteger.Compare metodo. Alcuni linguaggi possono anche chiamare direttamente il metodo, come illustrato nell'esempio GreaterThanOrEqual(BigInteger, BigInteger) seguente.

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

Il metodo equivalente per questo operatore è BigInteger.CompareTo(BigInteger).

Vedi anche

Si applica a

GreaterThanOrEqual(BigInteger, UInt64)

Importante

Questa API non è conforme a CLS.

Restituisce un valore che indica se un valore BigInteger è maggiore o uguale a un valore Unsigned Integer a 64 bit.

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

Parametri

left
BigInteger

Primo valore da confrontare.

right
UInt64

Secondo valore da confrontare.

Restituisce

Boolean

true se left è maggiore di right; in caso contrario, false.

Attributi

Commenti

Il GreaterThanOrEqual metodo definisce l'operazione dell'operatore maggiore o uguale all'operatore per BigInteger i valori. Abilita il codice, ad esempio quanto segue:

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

Le lingue che non supportano operatori personalizzati possono invece chiamare il BigInteger.CompareTo(UInt64) metodo. Alcuni linguaggi possono anche chiamare direttamente il metodo, come illustrato nell'esempio GreaterThanOrEqual(BigInteger, UInt64) seguente.

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

Il metodo equivalente per questo operatore è BigInteger.CompareTo(UInt64).

Vedi anche

Si applica a

GreaterThanOrEqual(UInt64, BigInteger)

Importante

Questa API non è conforme a CLS.

Restituisce un valore che indica se un Unsigned Integer a 64 bit è maggiore o uguale a un valore BigInteger.

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

Parametri

left
UInt64

Primo valore da confrontare.

right
BigInteger

Secondo valore da confrontare.

Restituisce

Boolean

true se left è maggiore di right; in caso contrario, false.

Attributi

Commenti

Il GreaterThanOrEqual metodo definisce l'operazione dell'operatore maggiore o uguale all'operatore per BigInteger i valori. Abilita il codice, ad esempio quanto segue:

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

Le lingue che non supportano operatori personalizzati possono invece chiamare il BigInteger.CompareTo(UInt64) metodo. Alcuni linguaggi possono anche chiamare direttamente il metodo, come illustrato nell'esempio GreaterThanOrEqual(UInt64, BigInteger) seguente.

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

Il metodo equivalente per questo operatore è BigInteger.CompareTo(UInt64).

Vedi anche

Si applica a