Help for this page

Select Code to Download


  1. or download this
    my $decimal = 4;
    $binary=unpack("B32", pack("N",$decimal));
    ...
    print $newdecimal;
    
    # 32 in the template means the binary number will have 32 places
    
  2. or download this