XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You don't explain it. If you take the lower 32 bits of the result that's too big to fit into an integer, I expect the higher bits to be thrown away, and the lower bits kept. But
the lower 32 bits of 4294967296 is 0, not 1.
I think Zaxo's reply is much closer to the truth. If I do then I get 0. Even more: yields 2. I think Perl does both (edit: at least, on my platform): taking $i%32 as its RHS, and drop the higher bits, just keeping the lower 32 bits, from the result. I just wish jeshuashok's loop counter went a bit higher, to at least above 64. In reply to Re^2: Left shift operation done more than 32 times
by bart
|
|