共用方式為


BigInteger.Subtraction(BigInteger, BigInteger) 運算子

定義

將某個 BigInteger 值減去另一個 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

參數

left
BigInteger

要被減的值 (被減數)。

right
BigInteger

要減去的值 (減數)。

傳回

right 減去 left 的結果。

實作

備註

方法 Subtraction 會針對值定義減法運算子的運算 BigInteger 。 它會啟用下列程式代碼:

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

不支援自定義運算子的語言可以改為呼叫 BigInteger.Subtract 方法。

這個運算子 BigInteger.Subtract(BigInteger, BigInteger)的對等方法是 。

適用於

另請參閱