3 ms·
Oops! Indeed (7 << 1) + 1 # => 15
by macournoyer 15y ago
Oops! Indeed
(7 << 1) + 1 # => 15
- trustfundbaby 15y agoMight also want to use 'last' instead of 'first' in this part of your explantion > tag the first bit w/ 1 I was confused with your explanation until I went and redid the binary on the original, then I got what you meant. sorry if its nitpicky. ignore if you got it.
- xentronium 15y agohttp://en.wikipedia.org/wiki/Bit_numbering http://en.wikipedia.org/wiki/Bit_numbering