[New-bugs-announce] [issue11967] Left shift and Right shift for floats

David Albert Torpey report at bugs.python.org
Sun May 1 05:05:22 CEST 2011


New submission from David Albert Torpey <dtorp at users.sourceforge.net>:

I would like to left and right shift floats as a fast way to multiply or divide by a power of 2 without rounding error.  The only way to do that now is t=frexp(x) and y=ldexp(t[0],t[1]+2).  But would be better to type y=x<<2.  Thank you.

----------
messages: 134897
nosy: dtorp
priority: normal
severity: normal
status: open
title: Left shift and Right shift for floats
versions: Python 3.3

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


More information about the New-bugs-announce mailing list