IBinaryInteger<TSelf>.DivRem(TSelf, TSelf) 方法

定义

计算两个值的商和余数。

public:
 static override ValueTuple<TSelf, TSelf> DivRem(TSelf left, TSelf right);
public static virtual (TSelf Quotient, TSelf Remainder) DivRem (TSelf left, TSelf right);
static member DivRem : 'Self * 'Self -> ValueTuple<'Self, 'Self (requires 'Self :> System.Numerics.IBinaryInteger<'Self> and 'Self :> System.Numerics.IBinaryInteger<'Self>)>
Public Shared Overrides Function DivRem (left As TSelf, right As TSelf) As ValueTuple(Of TSelf, TSelf)

参数

left
TSelf

除法的值 right

right
TSelf

除以 left的值。

返回

ValueTuple<TSelf,TSelf>

的商和余数 left 除以 right

适用于