I needed to convert a bunch of decimals to base 4, and wondered how short it could get. This is my best so far:
.. for 54 characters excluding the "perl", and the argument. Hugoperl -le'$!=shift;$_.=$!%4,$!=$!/4 while$!;print"".reverse' 62
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: base 4 golf
by thospel (Hermit) on Feb 22, 2003 at 18:46 UTC | |
|
Re: base 4 golf
by Aristotle (Chancellor) on Feb 22, 2003 at 21:04 UTC | |
by thospel (Hermit) on Feb 23, 2003 at 00:04 UTC | |
|
Re: base 4 golf
by theorbtwo (Prior) on Feb 23, 2003 at 14:31 UTC |