base convert by zubenalt

-module m.
-export [m/0].
m()->try{ok,[N,B]}=io:fread('',"~d ~s"),io:format("~."++B++"B~n",[N]),m()catch _:_->m end.

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page