Structure returned by div and ldiv
Structure used to represent the value of an integral division performed by div or ldiv.
It has two members of the same type, defined in either order as:
long quot;
long rem;
Members
- quot
- Represents the quotient of the integral division operation performed by div, which is the integer of lesser magnitude that is neares to the algebraic quotient.
- rem
- Represents the remainder of the integral division operation performed by div, which is the integer resulting from subtracting quot to the numerator of the operation.
See also
div | Integral division (function) |
div | Integral division (function) |
ldiv | Integral division (function) |
|