Files
cppdraft_translate/cppdraft/math/constants.md
2025-10-25 03:02:53 +03:00

1.2 KiB
Raw Blame History

[math.constants]

29 Numerics library [numerics]

29.8 Numbers [numbers]

29.8.2 Mathematical constants [math.constants]

1

#

The library-defined partial specializations of mathematical constant variable templates are initialized with the nearest representable values ofe,log2e,log10e,π,1π,1√π,ln2,ln10,√2,√3,1√3, the Euler-Mascheroni γ constant, and the golden ratio φ constant 1+√52, respectively.

2

#

Pursuant to [namespace.std], a program may partially or explicitly specialize a mathematical constant variable template provided that the specialization depends on a program-defined type.

3

#

A program that instantiates a primary template of a mathematical constant variable template is ill-formed.