in reply to Re^2: calculating the 3 MSBs from an integer
in thread calculating the 3 MSBs from an integer
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: calculating the 3 MSBs from an integer
by Random_Walk (Prior) on Feb 17, 2005 at 15:27 UTC | |
by insaniac (Friar) on Feb 17, 2005 at 21:14 UTC | |
by Random_Walk (Prior) on Feb 17, 2005 at 22:20 UTC | |
by insaniac (Friar) on Feb 18, 2005 at 06:43 UTC |