[NumPy-Tickets] [NumPy] #1589: loadtxt reads floats in as float32 instead of float64 under certain cicumstances

NumPy Trac numpy-tickets@scipy....
Sat Aug 21 12:47:27 CDT 2010


#1589: loadtxt reads floats in as float32 instead of float64 under certain
cicumstances
------------------------+---------------------------------------------------
 Reporter:  robitaille  |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  high        |   Milestone:  2.0.0   
Component:  Other       |     Version:  devel   
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by robitaille):

 I think this is actually a deeper issue. The incorrect rounding also
 occurs when just creating an array from strings:

 {{{
 Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>>
 np.array(["-9.9999999961922814E-01","-9.9999999996192290E-01","-9.9999999999619227E-01"],
 dtype=float)
 array([-1., -1., -1.])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1589#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list