Take the 2-minute tour ×
Programming Puzzles & Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It's 100% free, no registration required.

Read input (as command-line argument or stdin) as a full stop symbol (.) followed by a series of octal characters. Convert this number (which is between 0 and 1) to a mixed-radix notation(based on pi) where the radices of each digit are that of each (base 10) digit of pi after the decimal point in hexadecimal + 16. The output should be represented using digits 0-9 and the first (radix - 10) lowercase English letters.

Round the output for its length to be twice the length of the input (excluding any periods).

Examples:

Input: .1 Output: .23. The first digit is in base 17, and the second in base 20.

Input: .000 Output: .000000

All answers must correctly report the conversion of .14155 in their answer

share|improve this question
 
Is this a code-trolling question? Then you should add a disclaimer. If it is not, then remove the code-trolling tag. –  ProgramFOX Jan 13 at 18:13
 
@ProgramFOX Ah, sorry, I was looking for code-challenge but must have hit upon a failure of my ability to operate a suggestion dropdown. –  hexafraction Jan 13 at 18:15
 
If the question is a popularity-contest, then it should not be tagged code-challenge because in a popularity contest, the highest voted answer wins, but in a code-challenge, you should specify a scoring algorithm. –  ProgramFOX Jan 13 at 18:18
 
@ProgramFOX Sorry, new here. I just had the idea floating around one day when I came across this site. –  hexafraction Jan 13 at 18:19
 
"the radices of each digit are that of each (base 10) digit of pi after the decimal point in hexadecimal + 16" ??! –  Peter Taylor Jan 13 at 19:13
show 5 more comments

closed as unclear what you're asking by Peter Taylor, Quincunx, Darren Stone, Timtech, hildred Jan 14 at 2:19

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.