共用方式為


IBinaryInteger<TSelf>.DivRem 方法

定義

多載

名稱 Description
DivRem(TSelf, TSelf)

計算兩個值的商與餘數。

DivRem(TSelf, TSelf, DivisionRounding)

DivRem(TSelf, TSelf)

來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs

計算兩個值的商與餘數。

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

例外狀況

right 為零。

適用於

DivRem(TSelf, TSelf, DivisionRounding)

來源:
IBinaryInteger.cs
public:
 static override ValueTuple<TSelf, TSelf> DivRem(TSelf left, TSelf right, System::Numerics::DivisionRounding mode);
public static virtual(TSelf Quotient, TSelf Remainder) DivRem(TSelf left, TSelf right, System.Numerics.DivisionRounding mode);
static member DivRem : 'Self * 'Self * System.Numerics.DivisionRounding -> 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, mode As DivisionRounding) As ValueTuple(Of TSelf, TSelf)

參數

left
TSelf
right
TSelf

傳回

ValueTuple<TSelf,TSelf>

適用於