Skip to content

Latest commit

 

History

History
105 lines (61 loc) · 2.08 KB

File metadata and controls

105 lines (61 loc) · 2.08 KB

FLOAT16_PHI

Golden ratio.

The golden ratio can be defined algebraically as

$$\phi = \frac{1 + \sqrt{5}}{2}$$

Usage

var FLOAT16_PHI = require( '@stdlib/constants/float16/phi' );

FLOAT16_PHI

The golden ratio.

var bool = ( FLOAT16_PHI === 1.6181640625 );
// returns true

Notes

The 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.

Examples

var FLOAT16_PHI = require( '@stdlib/constants/float16/phi' );

console.log( FLOAT16_PHI );
// => 1.6181640625