sub dec_2_bin { my @nib=qw (000 001 010 011 100 101 110 111); map $nib[$_], split( //, sprintf "%lo", $_[0]); }; [download]
In reply to Re: Base10 to Base2. by rir in thread Base10 to Base2. by Anonymous Monk