aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-09 18:08:11 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-10-09 18:09:35 -0400
commit6d54e8fc3c41247dc3fa5bd399733b629e9d621d (patch)
tree05f251af4c3cfd2fc5486f1ed4b0b2e4ba9dc2de /lib/std/math.zig
parent13ae7d47b77c4ac7b1769f3ac3b394c32ffebe6e (diff)
downloadzig-6d54e8fc3c41247dc3fa5bd399733b629e9d621d.tar.gz
zig-6d54e8fc3c41247dc3fa5bd399733b629e9d621d.zip
generated docs: render values
also fix pressing enter in search box before search finishes closes #3409
Diffstat (limited to 'lib/std/math.zig')
-rw-r--r--lib/std/math.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig
index e47021512e..ee30cb9758 100644
--- a/lib/std/math.zig
+++ b/lib/std/math.zig
@@ -4,7 +4,10 @@ const TypeId = builtin.TypeId;
const assert = std.debug.assert;
const testing = std.testing;
+/// Euler's number (e)
pub const e = 2.71828182845904523536028747135266249775724709369995;
+
+/// Archimedes' constant (π)
pub const pi = 3.14159265358979323846264338327950288419716939937510;
// From a small c++ [program using boost float128](https://github.com/winksaville/cpp_boost_float128)