[Numpy-tickets] [NumPy] #630: If float('123.45') works, so should numpy.float32('123.45')
NumPy
numpy-tickets@scipy....
Sat Apr 5 13:30:34 CDT 2008
#630: If float('123.45') works, so should numpy.float32('123.45')
-------------------------+--------------------------------------------------
Reporter: AndrewStraw | Owner: somebody
Type: defect | Status: new
Priority: low | Milestone: 1.0.5
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by philbinj):
OK, the attached patch doesn't currently work (and leaks an object). I've
attached f32_from_str.patch which works for me.
{{{
In [1]: import numpy as N
In [2]: N.float32('1.2345')
Out[2]: 1.2345001
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/630#comment:9>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list