Number of Bytes

Size (in bytes) of a half-precision floating-point number.

Usage

var FLOAT16_NUM_BYTES = require( '@stdlib/constants/float16/num-bytes' );

FLOAT16_NUM_BYTES

Size (in bytes) of a half-precision floating-point number.

var bool = ( FLOAT16_NUM_BYTES === 2 );
// returns true

Examples

var FLOAT16_NUM_BYTES = require( '@stdlib/constants/float16/num-bytes' );

console.log( FLOAT16_NUM_BYTES );
// => 2
Did you find this page helpful?