Make a program to calculate pi to the n'th decimal. Input the variable at runtime. Program In the language of you choice. (and none of the print"3.1415" crap.)
Name:
Anonymous2007-09-14 10:48 ID:WWWs1FtP
It works on that link (Firefox and IE tested), put a number (and nothing else) in the input field. I don't exactly put error handling in brainfuck.
That implementation is very strict and if it works there, it should work everywhere. No moving to before memory cell 0, no overflowing or underflowing. EOF = 0. Moving past 30000 is allowed to be Turing complete, but this program doesn't go there by far.
Only issue with my code is that the highest number you can input is 254 before the counter overflows. I guess it gets weird input on your implementation.
And yes, it's supposed to output 3.142857 repeating. That's 22 / 7, it's pretty hard to really calculate pi in brainfuck.