[racket] Rationalize & denominator: is it bug?

From: Roman Klochkov (kalimehtar at mail.ru)
Date: Thu Jun 26 02:15:30 EDT 2014

 > (denominator (rationalize (/ 23 10) 0.01))
1125899906842624.0

> (denominator (/ 23 10))
10 From refernece for rationalize:
Among the real numbers within (abs tolerance) of x, returns the one corresponding to an exact number whose denominator is the smallest.

I expect to have 10 from (denominator (rationalize (/ 23 10) 0.01))

-- 
Roman Klochkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140626/5d5efc61/attachment.html>

Posted on the users mailing list.