Constants
Halfprecision floatingpoint mathematical constants.
Installation
npm install @stdlib/constantsfloat16
Usage
var constants = require( '@stdlib/constantsfloat16' );
constants
Halfprecision floatingpoint mathematical constants.
var c = constants;
// returns {...}

CBRT_EPS
: cube root of halfprecision floatingpoint epsilon. 
EPS
: difference between one and the smallest value greater than one that can be represented as a halfprecision floatingpoint number. 
EXPONENT_BIAS
: the bias of a halfprecision floatingpoint number's exponent. 
MAX_SAFE_INTEGER
: maximum safe halfprecision floatingpoint integer. 
MAX
: maximum halfprecision floatingpoint number. 
MIN_SAFE_INTEGER
: minimum safe halfprecision floatingpoint integer. 
NINF
: halfprecision floatingpoint negative infinity. 
NUM_BYTES
: size (in bytes) of a halfprecision floatingpoint number. 
PINF
: halfprecision floatingpoint positive infinity. 
PRECISION
: effective number of bits in the significand of a halfprecision floatingpoint number. 
SMALLEST_NORMAL
: smallest positive normalized halfprecision floatingpoint number. 
SMALLEST_SUBNORMAL
: smallest positive denormalized halfprecision floatingpoint number. 
SQRT_EPS
: square root of halfprecision floatingpoint epsilon.
Examples
var objectKeys = require( '@stdlib/utilskeys' );
var constants = require( '@stdlib/constantsfloat16' );
console.log( objectKeys( constants ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 20162021. The Stdlib Authors.