You have a precedence problem. Modify your print lines to be: print +( $decimal & nnn ) <=> 0;
In reply to Re: decimal to binary conversion
by BrowserUk
in thread decimal to binary conversion
by mp0065789
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |