On 28 September 2017 at 14:31, Paul A. Bristow via Boost < boost@lists.boost.org> wrote:
Boost has the floating-point constant phi
http://www.boost.org/doc/libs/1_65_1/libs/math/doc/html/ math_toolkit/constants.html
Expressed as a ratio: // The Golden Ratio, the ratio of the 2 largest consecutive Fibonacci numbers // representable in std::intmax_t... #ifdef _WIN64 using golden_ratio = std::ratio<7540113804746346429, 4660046610375530309>; #else using golden_ratio = std::ratio<1836311903, 1134903170>; #endif Which makes the definition of the Golden Ratio independent of the underlying (system defined) representation of reals, but the best possible. degski -- "*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend, Schmerzen aus Schwäche stillend.*" - Novalis 1798