Skip to content

Commit 8169830

Browse files
committed
PI : define PI as a const double
1 parent 25d3761 commit 8169830

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inc/susa.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
#ifndef SUSA_H
4343
#define SUSA_H
4444

45+
namespace susa {
4546
// Constants
46-
#define PI 3.1415926535897932384626433
47+
const double PI = 3.1415926535897932384626433;
48+
}
4749

4850
// STL headers
4951
#include <cmath>

0 commit comments

Comments
 (0)