BigInteger.Subtraction(BigInteger, BigInteger) Operatore

Definizione

Sottrae un valore BigInteger da un altro valore BigInteger.

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

Parametri

left
BigInteger

Valore da cui sottrarre (minuendo).

right
BigInteger

Valore da sottrarre (sottraendo).

Restituisce

Risultato della sottrazione di right da left.

Implementazioni

Commenti

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

BigInteger num1 = 100045632194;
BigInteger num2 = 90329434;
BigInteger result = num1 - num2;
Dim num1 As BigInteger = 100045632194
Dim num2 As BigInteger = 90329434
Dim result As BigInteger = num1 - num2

Le lingue che non supportano operatori personalizzati possono invece chiamare il BigInteger.Subtract metodo.

Il metodo equivalente per questo operatore è BigInteger.Subtract(BigInteger, BigInteger).

Si applica a

Vedi anche