perl -MMath::BigInt -le ' $i=new Math::BigInt "4294967296"; $j=new Math::BigInt "4294967295"; print $i->as_hex(); print $j->as_hex(); print $i->band($j)->as_hex()'
0x100000000 0xffffffff 0x0
In reply to Re: Bitwise & with large numbers
by dcd
in thread Bitwise & with large numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |