News for hackers. Stuff that matters.
Re:How Many Decimals of Pi Do We Really Need? (2016) by taylodl on Monday September 28, 2020 @12:43PM (#24618553)
C/C++ don't define PI but have an atan function. According to the TIOBE Index for September 2020 (https://www.tiobe.com/tiobe-index/) those languages are both in the top 5 of languages used by developers.
Re:How Many Decimals of Pi Do We Really Need? (2016) by votepaunchy on Monday September 28, 2020 @05:42PM (#24621525)
C++20 defines mathematical constants including Pi.

https://en.cppreference.com/w/cpp/numeric/constants

Re:How Many Decimals of Pi Do We Really Need? (2016) by taylodl on Tuesday September 29, 2020 @07:44AM (#24626478)
Thanks for the heads up! I haven't been paying any attention to C++20. You must be on the cutting edge of C++ to know that - I ended up having to work a bit on my Macbook Pro to get a version of gcc working that defines std::numbers::pi.
Re:How Many Decimals of Pi Do We Really Need? (2016) by saagarjha on Tuesday September 29, 2020 @01:52AM (#24624515)
They don’t but POSIX requires M_PI.