Well, I gave it a try in PHP, since that is what I had readily available and easily presentable.
The result can be seen at:
http://files.themightypen.net/Patrick/convert.php
(naturally, the above file doesn't generate a valid HTML page...I just couldn't be bothered)
PHP function used was:
http://fr.php.net/manual/en/function.base-convert.php
It should be able to convert floating point numbers, but doesn't...(it converts the number as 31415 and gives the correct answer for that...)
Should I look into it once I'm not at work and have better resources available?