2006/7/24, PGM <[EMAIL PROTECTED]>:
Folks ,
I'm still using numpy 0.9.8 and just ran into this problem on my machine
(AMD64):

>>> import numpy as N
>>> x = N.array([1.23456])
>>> print divmod(x,1)
(array([ 1.]), array([ 0.23456]))
>>> print divmod(x[0],1)
()
>>> print divmod(x.tolist()[0],1)
(1.0, 0.2345600000000001)

divmod doesn't seem to like '<f8's. Forcing x to '<f4' seems to do the
trick...
Did anybody run into this problem already ? Is it really numpy related ? If
this is a bug on 0.9.8, has it been corrected already ?


It works in svn.

David
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to