Re: [Numpy-discussion] What does float64 mean on a 32-bit machine?

2010-03-24 Thread Christopher Barker
reckoner wrote: > How can I have a float64 dtype on a 32-bit machine? For example: float64 is known as "double" in C, just for this reason. Modern FPUs use 64 bit (actually more bits), so you can get very good performance with float64 on 32 bit machines. And it is the standard Python float as w

Re: [Numpy-discussion] What does float64 mean on a 32-bit machine?

2010-03-24 Thread Robert Kern
On Wed, Mar 24, 2010 at 17:38, reckoner wrote: > How can I have a float64 dtype on a 32-bit machine? For example: float64 is a 64-bit float on all machines. A "32-bit machine" refers only to the size of its memory address space and the size of the integer type used for pointers. It has no effect

[Numpy-discussion] What does float64 mean on a 32-bit machine?

2010-03-24 Thread reckoner
How can I have a float64 dtype on a 32-bit machine? For example: In [90]: x = array([1/3],dtype=float32) In [91]: x Out[91]: array([ 0.3334], dtype=float32) In [92]: x = array([1/3],dtype=float64) In [93]: x Out[93]: array([ 0.]) Obviously, the float32 and float64 representations