From 3e67b67c3e467aedbab8dd4713a25ef2bcef22e3 Mon Sep 17 00:00:00 2001 From: Timothy Lyanguzov Date: Sun, 31 May 2015 13:48:43 +1200 Subject: [PATCH] Fix type for PI constant --- 03-Style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03-Style.md b/03-Style.md index a71825a..b11ce68 100644 --- a/03-Style.md +++ b/03-Style.md @@ -13,7 +13,7 @@ are common examples. *snake_case* has the advantage that it can also work with s * Types start with capitals: `MyClass` * functions and variables start with lower case: `myMethod` - * constants are all capital: `const int PI=3.14159265358979323;` + * constants are all capital: `const double PI=3.14159265358979323;` C++ Standard Library (and other well-known C++ libraries like [Boost](http://www.boost.org/)) use these guidelines: