Skip to main content

divmod

lq.divmod(dividend, divisor)

Performs integer (floored) division and returns (quotient, remainder) while guaranteeing that quotient * divisor + remainder = divident. Note that using calc.quo and calc.rem does not give this guarantee.

Parameters

dividend : int | float

The dividend of the quotient.

divisor : int | float

The divisor of the quotient.