Edit

Share via


Int32.DivRem(Int32, Int32) Method

Definition

Computes the quotient and remainder of two values.

C#
public static(int Quotient, int Remainder) DivRem(int left, int right);

Parameters

left
Int32

The value which right divides.

right
Int32

The value which divides left.

Returns

The quotient and remainder of left divided-by right.

Implements

Applies to

Product Versions
.NET 7, 8, 9