[Numpy-tickets] [NumPy] #494: Arrays of type float96 or float128 do not display correctly

NumPy numpy-tickets@scipy....
Sun Apr 8 12:43:39 CDT 2007


#494: Arrays of type float96 or float128 do not display correctly
------------------------------+---------------------------------------------
 Reporter:  socha             |        Owner:  somebody     
     Type:  defect            |       Status:  new          
 Priority:  normal            |    Milestone:  1.0.2 Release
Component:  numpy.core        |      Version:  none         
 Severity:  normal            |   Resolution:               
 Keywords:  float96 float128  |  
------------------------------+---------------------------------------------
Comment (by charris):

 Looks like the print routine is stepping correctly through the array but
 treating the resulting values as doubles. Here is a hoked up test where
 every third value (2*96/64) should correspond to your numbers 1,2,3


 {{{
 In [16]: f =
 fromstring(array([1,0,2,0,3,0],float96).tostring(),dtype=double)

 In [17]: f[::3]
 Out[17]: array([-0., -0., -2.])

 }}}

 So it looks like a format string problem, although -0.0 has a sign that
 doesn't appear in your output. I find it odd that the formats should vary
 depending on the compiler. Hmmm...

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/494#comment:5>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list