Doubling binary digits

Posted by psihodelia on Stack Overflow See other posts from Stack Overflow or by psihodelia
Published on 2010-05-28T12:23:26Z Indexed on 2010/05/28 12:42 UTC
Read the original article Hit count: 132

Filed under:
|
|
|
|

How to double a number of binary digits in an integer? For example, if bin(x)="1001" then bin(y) must be "11000011". Is there any smart and fast algorithm ?

© Stack Overflow or respective owner

Related posts about python

Related posts about c