Skip to content

Commit

Permalink
geometry/basic.h: cast param to double
Browse files Browse the repository at this point in the history
  • Loading branch information
ngthanhtrung23 authored Mar 17, 2024
1 parent 43d56de commit 98d95a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Geometry/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define EPS 1e-6
#endif

const double PI = acos(-1.0);
const double PI = acos(-1.0l);

double DEG_to_RAD(double d) { return d * PI / 180.0; }
double RAD_to_DEG(double r) { return r * 180.0 / PI; }
Expand Down

0 comments on commit 98d95a9

Please sign in to comment.