does c++ STL define Pi? -
does stl contain definition pi (=3.14)? certainly, can utilize old m_pi
, non-standard , not cross-compiler compliant.
boost.math defines pi (and many other) mathematical constants high precision
#include <boost/math/constants.hpp> long double pi = boost::math::constants::pi<long double>();
a total list available here.
stl pi
No comments:
Post a Comment