sub dec2bin { return sprintf("%b", $_[0]); } [download]
In reply to Re: calculating the 3 MSBs from an integer by spurperl in thread calculating the 3 MSBs from an integer by insaniac