Apple3.14

From Esolang
Jump to navigation Jump to search

Apple3.14 is a language designed to print Pi for a given number of decimals by user:Maxsteele2.

Example Programs

Pi to 5 decimals

apple3.14
goto 5
end

This prints this:

3.14159

Pi to 42 decimals

apple3.14
goto 42
end

This prints this:

3.141592653589793238462643383279502884197169

How high will it go?

At best, 31,415,926,535,897 places. That's the current record, according to this page.

So what's this good for besides calculating Pi?

Not much, really. Quines are impossible, and Apple3.14 is Turing incomplete.

Implementation

An implementation in J, written by User:Conor O'Brien, can be found here.