[SciPy-Dev] tricky unary versus binary minus
josef.pktd at gmail.com
josef.pktd at gmail.com
Sat Feb 18 00:00:05 EST 2017
just an observation
>>> bwi
25
>>> - bwi // 2 # not what I wanted
-13
>>> 0 - bwi // 2
-12
>>> - (bwi // 2)
-12
different rules from float division
>>> 0 - bwi / 2
-12.5
>>> - bwi / 2
-12.5
bug in my code
Josef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20170218/b71a064c/attachment.html>
More information about the SciPy-Dev
mailing list