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

要减去的值(减数)。

返回

rightleft 所得的结果。

实现

注解

方法 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)的等效方法是 。

适用于

另请参阅