Skip to content

smiranda/MetaPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaPi

Compile-Time Pi via Template Meta-Programming. This library offers a C++11 template meta-programming implementation of the Bailey–Borwein–Plouffe formula, used to extract hexadecimal fractional digits of pi. See sample.cpp for usage examples.

The repository includes MSVS solution files, although it should be trival to compile this library in any other C++11 compliant compiler. To enable compile-time constexpr evaluation, you must compile with optimizations enabled (e.g., -O2). You might also need to increase the maximum constexpr recursion depth, depending on which pi digit you seek.

See LICENSE.txt for licensing details.

About

Compile-Time Pi via Template Meta-Programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages