Name

divrem

Usage

builtin-function

Syntax

(divrem number)
(divrem numerator denominator)

Description

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

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