C does not even have M_PI standardized. C++ only added std::numbers::pi very recently. Yes, the fact that this took so long does hint at some issues. Both languages have an upper bound to their precision of their floating point types (float, double, long double) which are of fixed size. π is just a number and could be offered in float, double and long double form. So, what are the 'issues' with adding π?
↧
What obstacles prevented C and C++ from standardizing π?
↧