[racket] (floor (/ ....))

From: Laurent (laurent.orseau at gmail.com)
Date: Tue Jun 11 04:17:04 EDT 2013

On Tue, Jun 11, 2013 at 9:45 AM, Stephan Houben <stephanh42 at gmail.com>wrote:

>   replace (floor (/ a b)) with (modulo a b)
>


Actually:
> (modulo 10 3)
1
> (remainder 10 3)
1
> (quotient 10 3)
3
> (floor (/ 10 3))
3

`modulo' is more like `remainder', except for negative numbers.

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130611/4c287cef/attachment.html>

Posted on the users mailing list.