The golden ratio can be defined algebraically as
var FLOAT16_PHI = require( '@stdlib/constants/float16/phi' );The golden ratio.
var bool = ( FLOAT16_PHI === 1.6181640625 );
// returns trueThe value is approximately 1.6180339887498948482... in double precision. Due to the limited precision of half-precision floating-point format (float16), the constant is rounded to 1.6181640625.
var FLOAT16_PHI = require( '@stdlib/constants/float16/phi' );
console.log( FLOAT16_PHI );
// => 1.6181640625