[Numpy-discussion] upcast

Lars Friedrich lfriedri at imtek.de
Thu Aug 31 00:25:40 CDT 2006




> To answer the original question, you need to use a higher precision
> array or explicitly cast it to higher precision.
> 
> In [49]:(a.astype(int)*100)/100 
> Out[49]:array([200])

Thank you. This is what I wanted to know.

Lars






More information about the Numpy-discussion mailing list