Fixed (quotient) to truncate result

This commit is contained in:
Justin Ethier 2016-04-05 23:51:42 -04:00
parent c9326fc8c4
commit 774e009056

View file

@ -1013,8 +1013,8 @@
(define (denominator n) 1)
(define (numerator n) n)
;; TODO: possibly not correct, just a placeholder
(define quotient /)
(define (quotient x y)
(truncate (/ x y)))
(define truncate-quotient quotient)
(define truncate-remainder remainder)