Help for this page

Select Code to Download


  1. or download this
    use Math::BigInt;
    
    ...
    my $mask    = '0x100000000f00000000000000000000f0';
    
    print Math::BigInt->new($mask)->band($operand)->as_hex(), "\n";
    
  2. or download this
    my $anded = Math::BigInt->new($mask) & $operand;
    print $anded->as_hex(), "\n";