[issue11967] Left shift and Right shift for floats

Martin v. Löwis report at bugs.python.org
Sun May 1 11:51:29 CEST 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

"The only way ..." That's not true. y=x*(1<<n) is also an exact multiplication with a power of two, and it's also fairly fast. Likewise for y=x/(1<<n).

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11967>
_______________________________________


More information about the Python-bugs-list mailing list