32 bit or 64 bit?

Peter Otten __peter__ at web.de
Sun Jun 15 07:48:23 EDT 2008


ram.rachum at gmail.com wrote:

> Quick question:
> I have python code that does a lot of floating point arithmetic. How
> do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If
> I'll install a 64-bit operating system, will that do the trick?

The Python float type uses a C double internally which is 64 bit even on 32
bit CPUs.

Peter



More information about the Python-list mailing list