summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIan Bertolacci <ian.bertolacci@gmail.com>2015-07-14 17:32:00 -0700
committerIan Bertolacci <ian.bertolacci@gmail.com>2015-07-14 17:32:00 -0700
commit6a6673b1540eda903981bdaccc844a5fc802a216 (patch)
treeb009cd68f248eeaeb3076a99d0820add03a9ca38
parentdf0cd1395db5178aabc68bf17d48a8278f16d749 (diff)
Fixed almost pi
22/7ths is closer to pi than 11/7ths. Almost twice as close!
-rw-r--r--chapel.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapel.html.markdown b/chapel.html.markdown
index 6382f75a..fd01b0f2 100644
--- a/chapel.html.markdown
+++ b/chapel.html.markdown
@@ -91,7 +91,7 @@ var intFromReal = myReal : int;
var intFromReal2: int = myReal : int;
// consts are constants, they cannot be changed after set in runtime
-const almostPi: real = 11.0/7.0;
+const almostPi: real = 22.0/7.0;
// params are constants whose value must be known statically at compile time
// Like consts, they cannot be changed during runtime
param compileTimeConst: int = 16;