Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 12205

This tag is for challenges involving the mathematical constant pi, the ratio of a circle's circumference to its diameter.

6 votes

Output Pi without math

Python, 39 or 28 47 or 34 (Thank you Score_Under for golfing it down so much) print"%s.%s%c"%(len('aaa'),len('a'),52) + here is the string concatenation operator, not addition. Copying the 0xe …
user12205's user avatar
  • 9,018
58 votes

Pi Calculation Code Golf

Zu also gave the ratio 22/7 as the "rough ratio", and he is known to be the first mathematician to propose that 3.1415926 <= pi <=3.1415927 …
user12205's user avatar
  • 9,018