[Numpy-discussion] numpy.ndarray.astype conversion
Charles R Harris
charlesr.harris@gmail....
Thu May 22 16:03:19 CDT 2008
On Thu, May 22, 2008 at 2:52 PM, Orest Kozyar <orest.kozyar@gmail.com>
wrote:
> The following line: array([6.95e-5]).astype('S')
> returns: array(['6'], dtype='|S1')
>
> I realize that I can get it to return the correct string
> representation if I specify 'S12', etc, but anything below 'S9'
> results in an incorrect string representation of the number. Is this
> expected behavior?
>
Heh,
I don't know what it should do. Issue a warning, maybe?
What are you trying to do?
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080522/a2e23a68/attachment.html
More information about the Numpy-discussion
mailing list