[racket] Question about round

From: Mark Engelberg (mark.engelberg at gmail.com)
Date: Thu Sep 29 17:11:14 EDT 2011

I'm a bit baffled by this behavior:

> (exact? (round (sin 30)))
#f
> (integer? (round (sin 30)))
#t
>

How is it possible to have an inexact integer?

I would expect the answer to both of these tests to be true.

Thanks,

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110929/52767a2e/attachment.html>

Posted on the users mailing list.