The python solution of always calling the same function for all of floor_div, remainder, and divmod seems to make the most sense. Presumably one can pass on some flags that tell which result (s) one ...
Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary ...