BigInteger.GreaterThan Operador
Definição
Retorna um valor que indica se um valor especificado é maior que outro valor especificado.Returns a value that indicates whether a specified value is greater than another specified value.
Sobrecargas
| GreaterThan(Int64, BigInteger) |
Retorna um valor que indica se um inteiro com sinal de 64 bits é maior que um valor BigInteger.Returns a value that indicates whether a 64-bit signed integer is greater than a BigInteger value. |
| GreaterThan(BigInteger, Int64) |
Retorna um valor que indica se um BigInteger é maior que um valor inteiro com sinal de 64 bits.Returns a value that indicates whether a BigInteger is greater than a 64-bit signed integer value. |
| GreaterThan(BigInteger, BigInteger) |
Retorna um valor que indica se um valor BigInteger é maior que outro valor BigInteger.Returns a value that indicates whether a BigInteger value is greater than another BigInteger value. |
| GreaterThan(BigInteger, UInt64) |
Retorna um valor que indica se um valor BigInteger é maior que um inteiro sem sinal de 64 bits.Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer. |
| GreaterThan(UInt64, BigInteger) |
Retorna um valor que indica se um valor BigInteger é maior que um inteiro sem sinal de 64 bits.Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer. |
GreaterThan(Int64, BigInteger)
Retorna um valor que indica se um inteiro com sinal de 64 bits é maior que um valor BigInteger.Returns a value that indicates whether a 64-bit signed integer is greater than 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
Parâmetros
- left
- Int64
O primeiro valor a ser comparado.The first value to compare.
- right
- BigInteger
O segundo valor a ser comparado.The second value to compare.
Retornos
true caso left seja maior que right; do contrário, false.true if left is greater than right; otherwise, false.
Comentários
O GreaterThan método define a operação do operador maior que para BigInteger valores.The GreaterThan method defines the operation of the greater than operator for BigInteger values. Ele permite que o código seja o seguinte: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
Os idiomas que não dão suporte a operadores personalizados podem chamar o BigInteger.CompareTo(Int64) método de instância em vez disso.Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) instance method instead. Alguns idiomas também podem chamar o GreaterThan(Int64, BigInteger) método diretamente, como mostra o exemplo a seguir.Some languages can also call the GreaterThan(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_GreaterThan(number,bigNumber) Then
' Do something
End If
Se left for um Byte Int16 valor,, Int32 ,, SByte UInt16 ou UInt32 , ele será convertido implicitamente em um Int64 valor quando a operação for executada.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.
O método equivalente para esse operador é BigInteger.CompareTo(Int64) .The equivalent method for this operator is BigInteger.CompareTo(Int64).
Confira também
Aplica-se a
GreaterThan(BigInteger, Int64)
Retorna um valor que indica se um BigInteger é maior que um valor inteiro com sinal de 64 bits.Returns a value that indicates whether a BigInteger is greater than 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
Parâmetros
- left
- BigInteger
O primeiro valor a ser comparado.The first value to compare.
- right
- Int64
O segundo valor a ser comparado.The second value to compare.
Retornos
true caso left seja maior que right; do contrário, false.true if left is greater than right; otherwise, false.
Comentários
O GreaterThan método define a operação do operador maior que para BigInteger valores.The GreaterThan method defines the operation of the greater than operator for BigInteger values. Ele permite que o código seja o seguinte: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
Linguagens que não dão suporte a operadores personalizados podem chamar o método BigInteger.CompareTo(Int64) em vez disso.Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. Alguns idiomas também podem chamar o GreaterThan(BigInteger, Int64) método diretamente, como mostra o exemplo a seguir.Some languages can also call the GreaterThan(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_GreaterThan(bigNumber,number) Then
' Do something
End If
Se right for um Byte Int16 valor,, Int32 ,, SByte UInt16 ou UInt32 , ele será convertido implicitamente em um Int64 valor quando a operação for executada.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.
O método equivalente para esse operador é BigInteger.CompareTo(Int64) .The equivalent method for this operator is BigInteger.CompareTo(Int64).
Confira também
Aplica-se a
GreaterThan(BigInteger, BigInteger)
Retorna um valor que indica se um valor BigInteger é maior que outro valor BigInteger.Returns a value that indicates whether a BigInteger value is greater than 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
Parâmetros
- left
- BigInteger
O primeiro valor a ser comparado.The first value to compare.
- right
- BigInteger
O segundo valor a ser comparado.The second value to compare.
Retornos
true caso left seja maior que right; do contrário, false.true if left is greater than right; otherwise, false.
Comentários
O GreaterThan método define a operação do operador maior que para BigInteger valores.The GreaterThan method defines the operation of the greater than operator for BigInteger values. Ele permite que o código seja o seguinte:It enables code such as the following:
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
Linguagens que não dão suporte a operadores personalizados podem chamar o método BigInteger.Compare(BigInteger, BigInteger) em vez disso.Languages that do not support custom operators can call the BigInteger.Compare(BigInteger, BigInteger) method instead. Eles também podem chamar o GreaterThan(BigInteger, BigInteger) método diretamente, como mostra o exemplo a seguir.They can also call the GreaterThan(BigInteger, BigInteger) method directly, as the following example shows.
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
O método equivalente para esse operador é BigInteger.CompareTo(BigInteger) .The equivalent method for this operator is BigInteger.CompareTo(BigInteger).
Confira também
Aplica-se a
GreaterThan(BigInteger, UInt64)
Importante
Esta API não está em conformidade com CLS.
Retorna um valor que indica se um valor BigInteger é maior que um inteiro sem sinal de 64 bits.Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer.
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
Parâmetros
- left
- BigInteger
O primeiro valor a ser comparado.The first value to compare.
- right
- UInt64
O segundo valor a ser comparado.The second value to compare.
Retornos
true caso left seja maior que right; do contrário, false.true if left is greater than right; otherwise, false.
- Atributos
Comentários
O GreaterThan método define a operação do operador maior que para BigInteger valores.The GreaterThan method defines the operation of the greater than operator for BigInteger values. Ele permite que o código seja o seguinte: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
Linguagens que não dão suporte a operadores personalizados podem chamar o método BigInteger.CompareTo(UInt64) em vez disso.Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. Alguns idiomas também podem chamar o GreaterThan(BigInteger, UInt64) método diretamente, como mostra o exemplo a seguir.Some languages can also call the GreaterThan(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_GreaterThan(bigNumber, number) Then
' Do something
End If
Aplica-se a
GreaterThan(UInt64, BigInteger)
Importante
Esta API não está em conformidade com CLS.
Retorna um valor que indica se um valor BigInteger é maior que um inteiro sem sinal de 64 bits.Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer.
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
Parâmetros
- left
- UInt64
O primeiro valor a ser comparado.The first value to compare.
- right
- BigInteger
O segundo valor a ser comparado.The second value to compare.
Retornos
true caso left seja maior que right; do contrário, false.true if left is greater than right; otherwise, false.
- Atributos
Comentários
O GreaterThan método define a operação do operador maior que para BigInteger valores.The GreaterThan method defines the operation of the greater than operator for BigInteger values. Ele permite que o código seja o seguinte: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
Linguagens que não dão suporte a operadores personalizados podem chamar o método BigInteger.CompareTo(UInt64) em vez disso.Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. Alguns idiomas também podem chamar o GreaterThan(UInt64, BigInteger) método diretamente, como mostra o exemplo a seguir.Some languages can also call the GreaterThan(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_GreaterThan(number, bigNumber) Then
' Do something
End If