Name

divrem

Usage

builtin-function

Syntax

(divrem number)
(divrem numerator denominator)

Description

Returns a list with the quotient and remainder of the division.

user 1 > (divrem 6)
it: (0 1)
user 2 > (divrem 12 7)
it: (1 5)
user 3 > (divrem 0.2)
it: (5 0.0)