0 00000000000000000000000000000000 0 1 00000001000000000000000000000000 0 2 00000010000000000000000000000000 0 3 00000011000000000000000000000000 0 ..
the binary forms are "a bit" akward, no? I just copy pasted your command line..
and why is the piece: $_ & 0xFF needed? without it, the code seems to work as well... or am i missing something mayor overhere?
anyhow.. now i know i shouldn't have skipped the chapters about bitwise operators :-D
--
to ask a question is a moment of shame
to remain ignorant is a lifelong shame
In reply to Re^3: calculating the 3 MSBs from an integer
by insaniac
in thread calculating the 3 MSBs from an integer
by insaniac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |