> (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
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to