共用方式為


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

適用於