I tried to do division in Lisp.
When I do (/ 5 2)
, the result is 5/2
,
but what I need is 2
.
How can I do that?
I tried to do division in Lisp.
When I do (/ 5 2)
, the result is 5/2
,
but what I need is 2
.
How can I do that?
The function call
(floor 5 2)
will return the result of the integer division 2 and the remainder 1.
Description in the Common Lisp Hyperspec