BigInteger.GreaterThan Operatore

Definizione

Restituisce un valore che indica se un valore specificato è maggiore di un altro valore specificato.

Overload

GreaterThan(BigInteger, BigInteger)

Restituisce un valore che indica se un valore BigInteger è maggiore di un altro valore BigInteger.

GreaterThan(UInt64, BigInteger)

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

GreaterThan(BigInteger, UInt64)

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

GreaterThan(Int64, BigInteger)

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

GreaterThan(BigInteger, Int64)

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

GreaterThan(BigInteger, BigInteger)

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

Restituisce un valore che indica se un valore BigInteger è maggiore di 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, bool>::op_GreaterThan;
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

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

Implementazioni

Commenti

Il GreaterThan metodo definisce l'operazione dell'operatore maggiore di per BigInteger i valori. Abilita il codice, ad esempio quanto segue:

BigInteger number1 = 945834723;
BigInteger number2 = 345145625;
BigInteger number3 = 945834724;
Console.WriteLine(number1 > number2);              // Displays True
Console.WriteLine(number1 > number3);              // Displays False
Dim number1 As BigInteger = 945834723
Dim number2 As BigInteger = 345145625
Dim number3 As BigInteger = 945834724 
Console.WriteLine(number1 > number2)                  ' Displays True
Console.WriteLine(number1 > number3)                  ' Displays False

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

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

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

Vedi anche

Si applica a

GreaterThan(UInt64, BigInteger)

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

Importante

Questa API non è conforme a CLS.

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

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

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

Attributi

Commenti

Il GreaterThan metodo definisce l'operazione dell'operatore maggiore di 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 GreaterThan(UInt64, BigInteger) seguente.

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

Vedi anche

Si applica a

GreaterThan(BigInteger, UInt64)

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

Importante

Questa API non è conforme a CLS.

Restituisce un valore che indica se un valore BigInteger è maggiore di un 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

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

Attributi

Commenti

Il GreaterThan metodo definisce l'operazione dell'operatore maggiore di 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 GreaterThan(BigInteger, UInt64) seguente.

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

Si applica a

GreaterThan(Int64, BigInteger)

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

Restituisce un valore che indica se un Signed Integer a 64 bit è maggiore di 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

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

Commenti

Il GreaterThan metodo definisce l'operazione dell'operatore maggiore di 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 metodo di BigInteger.CompareTo(Int64) istanza. Alcuni linguaggi possono anche chiamare direttamente il metodo, come illustrato nell'esempio GreaterThan(Int64, BigInteger) seguente.

Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If BigInteger.op_GreaterThan(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

GreaterThan(BigInteger, Int64)

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

Restituisce un valore che indica se un BigInteger è maggiore di 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

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

Commenti

Il GreaterThan metodo definisce l'operazione dell'operatore maggiore di 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 GreaterThan(BigInteger, Int64) seguente.

Dim bigNumber As BigInteger = BigInteger.Pow(Int32.MaxValue, 4)
Dim number As Long = Int64.MaxValue
If BigInteger.op_GreaterThan(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