共用方式為


UIntPtr.DivRem(UIntPtr, UIntPtr) 方法

定義

計算兩個值的商與餘數。

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

參數

left
UIntPtr

unativeint

那個分 right 開的價值。

right
UIntPtr

unativeint

除以 left的值。

傳回

ValueTuple<UIntPtr,UIntPtr>

ValueTuple<unativeint,unativeint>

商與餘 left 數除以 right

實作

例外狀況

right 為零。

適用於