mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Fixed (quotient) to truncate result
This commit is contained in:
parent
c9326fc8c4
commit
774e009056
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue