Fix type for PI constant

This commit is contained in:
Timothy Lyanguzov
2015-05-31 13:48:43 +12:00
parent 2149f3a22d
commit 3e67b67c3e

View File

@@ -13,7 +13,7 @@ are common examples. *snake_case* has the advantage that it can also work with s
* Types start with capitals: `MyClass` * Types start with capitals: `MyClass`
* functions and variables start with lower case: `myMethod` * 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: C++ Standard Library (and other well-known C++ libraries like [Boost](http://www.boost.org/)) use these guidelines: