Skip to content

Commit

Permalink
limit precision to binary128 format
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave committed Aug 11, 2023
1 parent 5757021 commit b291239
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wiki_articles/pi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const T pi = std::acos(T(-1));

## C
```c
const long double pil =
3.141592653589793238462643383279502884197169399375105820L;
const long double pil =3.1415926535897932384626433832795028L;
const double pi = (double) pil;
const float pif = (float) pi;
// note: all variables can be constexpr in C23
Expand Down

0 comments on commit b291239

Please sign in to comment.