Ouch. Your bin2dec is doing absolutely nothing but making sure it's an integer.
Ehh.. but it does the job in question, right? Converting a supplied binary number to decimal.
update: OK, maybe that's not the definition of "decimal". Everyone happy if we rename the sub to bin2int? :)
In reply to RE: RE: RE: decimal to binary
by dempa
in thread decimal to binary
by Punto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |