[Numpy-discussion] Minimum dtype

2008-11-25 Thread Ryan May
Hi, I'm running on a 64-bit machine, and see the following: numpy.array(64.6).dtype dtype('float64') numpy.array(64).dtype dtype('int64') Is there any function/setting to make these default to 32-bit types except where necessary? I don't mean by specifying dtype=numpy.float32 or

Re: [Numpy-discussion] Minimum dtype

2008-11-25 Thread Robert Kern
On Tue, Nov 25, 2008 at 21:57, Ryan May [EMAIL PROTECTED] wrote: Hi, I'm running on a 64-bit machine, and see the following: numpy.array(64.6).dtype dtype('float64') numpy.array(64).dtype dtype('int64') Is there any function/setting to make these default to 32-bit types except where