UNPKG

math-float64-get-high-word

Version:

Returns a 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.

21 lines (12 loc) 250 B
'use strict'; // MODULES // var isLittleEndian = require( 'utils-is-little-endian' ); // INDEX // var HIGH; if ( isLittleEndian === true ) { HIGH = 1; // second index } else { HIGH = 0; // first index } // EXPORTS // module.exports = HIGH;