dtsivkovski / PMB-Portfolio

Tri 1: Python and Flask Intro
1 stars 2 forks source link

Multiply and Divide by 2 #27

Closed dtsivkovski closed 3 years ago

dtsivkovski commented 3 years ago

In this example, make the Bits change positions. Start 2^0 to 2^15. If you multiply by 2 then 2^0 bit becomes 2^1, 2^1 to 2^2. If you divide 2^15 becomes 2^14.

Done on binary.html