[Numpy-discussion] Minimum dtype

Ryan May rmay31@gmail....
Tue Nov 25 21:57:08 CST 2008


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 dtype=numpy.int32.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma


More information about the Numpy-discussion mailing list