Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    printf "%X\n", $HIGH_BITS;
    # prints: FFFFFFFF0000000
    # each hex digit is 4 bits, 7 zeroes x4 = 28 bits left shifted
    
  2. or download this
    >perl -le "my $HIGH_BITS = unpack "l", pack "l", 0xFFFFFFFF << 28; pri
    +nt $HIGH_BITS; "
    -268435456