Help for this page

Select Code to Download


  1. or download this
        print dec2bin(13) . "\n";
        sub dec2bin {
            return (sprintf "%b",shift);
            }
    
  2. or download this
        sub to_bin {
            my $num = shift;
            my $ret = '';
    ...
                $num >>= 1;
                }
            }