DivRem()

Math::DivRem(int, int, int&) method

Calculates the quotient of two 32-bit integers and the remainder.

static int System::Math::DivRem(int a, int b, int &result)

Arguments

ParameterTypeDescription
aintThe dividend
bintThe divisor
resultint&The output parameter that contains the remainder resulting from division of a by b

Return Value

The quoting of a and b

Math::DivRem(int64_t, int64_t, int64_t&) method

Calculates the quotient of two 64-bit integers and the remainder.

static int64_t System::Math::DivRem(int64_t a, int64_t b, int64_t &result)

Arguments

ParameterTypeDescription
aint64_tThe dividend
bint64_tThe divisor
resultint64_t&The output parameter that contains the remainder resulting from division of a by b

Return Value

The quoting of a and b

See Also