Help for this page

Select Code to Download


  1. or download this
        $oct= "0765";
        $hex= sprintf "0x%X",oct($oct);
    
  2. or download this
        $a= 0xffffffff;     print $a,"\n";
        $a += 1;            print $a,"\n";
    ...
        print "non-fract:\t", int($a), "\n";
        printf "unsigned long:\t%u\n", $a;
        print "unsigned long:\t", $a|0, "\n";
    
  3. or download this
    4294967295
    4294967296
    ...
    non-fract:      4294967299 # correct
    unsigned long:  4294967295 # incorrect
    unsigned long:  4294967295 # incorrect