Rational = float
I found a bug in my codes witch was due to a comparison between a fractional number and a float number. Because the float number is a 'limited' float with max 2 numbers after the point (and is always rational) I thought it works because : (= 1.0 1) => T (= 0.5 1/2) => T (= 0.25 1/4) => T (= 1.125 9/8) => T Etc. But in fact (= 0.2 1/5) => NIL Is it correct to say that the denominator of the rational must always be a power of two to make a valid comparison with a float ? In addition, is it a operator that return T for the test of comparison of 0.2 and 1/5 ? Or is it the best solution to make (= 0.2 (float 1/5)) ? Thanks Denis ------------------------------------------------------- Denis Pousseur 70 rue de Wansijn 1180 Bruxelles, Belgique Tel : 32 (0)2 219 31 09 Mail : denis.pousseur@gmail.com -------------------------------------------------------