Bagikan melalui


Int32.DivRem(Int32, Int32) Metode

Definisi

Menghitung quotient dan sisa dari dua nilai.

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

Parameter

left
Int32

Nilai yang right dibagi.

right
Int32

Nilai yang membagi left.

Mengembalikan

Quotient dan sisa dibagi-dengan leftright.

Penerapan

Berlaku untuk