[racket-dev] [racket] Question about round

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Fri Sep 30 14:22:21 EDT 2011

At Fri, 30 Sep 2011 11:31:47 -0500,
Robby Findler wrote:
> Just to clear up one more possible point: the rational? predicate
> actually recognizes inexact numbers, eg:
> 
> [robby at penghu] ~/git/plt/collects/drracket/private$ racket
> Welcome to Racket v5.1.3.9.
> > (rational? (sqrt 2))
> #t

This is probably less problematic than `integer?', since `rational?'
is (I assume) less used. But this is the same problem.

If we decide to change one, we should change both.

Vincent


Posted on the dev mailing list.