New submission from David Albert Torpey <dt...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11967>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to