Credit to @TheForArkLD , @Warhawk947 , and @LizFoster for inspiring these approximations. Most of these use the Nilakantha Series, although I also use the arctangent method (multiplying the radian arctangent of 1 by 4 to get pi and getting the arctangent with an infinite series) in three of them (Python, Node, and C).

## π in Java

I think I'm pretty much doing pi approximations in every language now, so here it is in Java!

Here are the other approximations so far:

QBasic - https://repl.it/talk/share/p-in-QBasic/34973

Fortran - https://repl.it/talk/share/p-in-Fortran/34890

APL - https://repl.it/talk/share/p-in-APL/34888

Forth - https://repl.it/talk/share/p-in-Forth/34652

LOLCODE - https://repl.it/talk/share/p-in-LOLCODE/34421

Python and Node.js (Node is linked in post) - https://repl.it/talk/share/2-Approximations-of-p-In-Only-Four-Lines-of-Code/32773

C - https://repl.it/talk/share/p-Approximations-in-C/33461

Credit to @TheForArkLD , @Warhawk947 , and @LizFoster for inspiring these approximations. Most of these use the Nilakantha Series, although I also use the arctangent method (multiplying the radian arctangent of 1 by 4 to get pi and getting the arctangent with an infinite series) in three of them (Python, Node, and C).

Suggestion: Do HTML / CSS next... If you somehow find a way to do it in those 2 langs, I will upvote all of your projects.

@ChezCoder On it!

@ChezCoder Actually, one issue: HTML and CSS are markup and stylesheet languages respectively, not

programminglanguages.@ChezCoder The closest you can possibly get: https://repl.it/@AmazingMech2418/HTMLCSS-Pi By the way, I already tried keyframes with iterating a variable. It doesn't work...

@AmazingMech2418 You can calculate in JS and display the results in HTML/CSS

@Roar123 It is supposed to be just HTML/CSS...

@AmazingMech2418 What's the point of that :)

@Roar123 No clue, honestly.

@AmazingMech2418

@CodingCactus Basically, what I did in the closest thing to it example... I just did it from memory with 46 digits...

@AmazingMech2418 yes thats the point, their markup/styling languages

@AmazingMech2418 But still, I have upvoted all of your projects. Well deserved :D

@ChezCoder Thank you!