Does C++11, 14, 17 or 20 introduce a standard constant for pi?
There is a rather silly problem with the number pi in C and C++. As far as I know M_PI defined in math.h is not required by any standard. New C++ standards introduced a lot of complicated math in the standard library - hyperbolic functions, std::hermite and std::cyl_bessel_i , different random number generators and so on and so forth. Did any of the 'new' standards bring in a constant for pi? If not - why? How does all this complicated math work without it? I am aware of similar questions about pi in C++ (they are several years and standards old); I would like to know the current state of the