共用方式為


UInt16.DivRem(UInt16, UInt16) 方法

定義

計算兩個值的商與餘數。

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

參數

left
UInt16

那個分 right 開的價值。

right
UInt16

除以 left的值。

傳回

商與餘 left 數除以 right

實作

例外狀況

right 為零。

適用於