The bin2dec function you have seems the same as that of merlyn in RE: Binary to Decimal (zdog's way), but I'm sure there's a better way.sub dec2bin { return sprintf("%b",shift); }
sub combo { return (2**shift)-1; }
In reply to Re: Binary to Decimal Translation
by tadman
in thread Binary to Decimal Translation
by cyocum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |