See also divmod/4 (not visible in the function in the header list because it is listed under "special arithmetic functions")
| Did you know ... | Search Documentation: |
| Function div/2 |
Y =\= 0.
Q is div(X, Y),
M is mod(X, Y),
X =:= Y*Q+M.