32 bit or 64 bit?

Christian Heimes lists at cheimes.de
Sun Jun 15 10:05:22 EDT 2008


ram.rachum at gmail.com wrote:
> Does it mean that even now it does arithmetic in 64 bit?
> I'm not getting enough precision. Is there any way to increase it?

Buy a good book about numerics or take a course. ;)

Seriously, computers and IEEE 754 floating point numbers have a lot of
pit falls. If you chose the wrong algorithm you *will* get wrong
results. With floats a*b*c and a*c*b can give you a different result.

The decimal module is not an option if you need speed.




More information about the Python-list mailing list