Daily bit(e) of C++ | C++20 mathematical constants
Daily bit(e) of C++ #248, Mathematical constants in C++20 through the <numbers> header.
Before C++20, using common mathematical constants relied on either POSIX or a compiler extension through the <math.h> header.
C++20 introduced a new <numbers> header that provides common mathematical constants as templates that can be specialized for user types. The standard library provides float, double and long double specialisations with an alias for the double variant.