Int32.DivRem(Int32, Int32) 方法

定义

计算两个值的商和余数。

public:
 static ValueTuple<int, int> DivRem(int left, int right) = System::Numerics::IBinaryInteger<int>::DivRem;
public static (int Quotient, int Remainder) DivRem (int left, int right);
static member DivRem : int * int -> ValueTuple<int, int>
Public Shared Function DivRem (left As Integer, right As Integer) As ValueTuple(Of Integer, Integer)

参数

left
Int32

除法的值 right

right
Int32

除以 left的值。

返回

除以 rightleft商和余数。

实现

适用于