On Sep 30, 7:35 pm, andresj <[EMAIL PROTECTED]> wrote: > I was doing some programming in Python, and the idea came to my mind: > using fractions instead of floats when doing 2/5.
The core problem with rationals (other than the inability to handle irrationals) is their tendency to require more and more memory as calculations progress. This means they get mysteriously slower and slower. http://mail.python.org/pipermail/python-list/2002-October/166630.html My own "pet numeric type" is fixed point. You get as much precision as you specify. Alas, 2/5 would likely result in 0. ;) -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list