NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
div_t div ( int  numer,
int  denom 
)
inline

Integral division.

Returns the integral quotient and remainder of the division of numerator by denominator as a structure of type div_t, which has two members: quot and rem.

Parameters
numerNumerator.
denomDenominator.
Returns
The result is returned by value in a structure defined in cstdlib, which has two members. For div_t, these are, in either order: int quot; int rem.
Examples:
ex_div.nxc.