math-float64-to-words
Version:
Splits a floating-point number into a higher order word and a lower order word.
28 lines (18 loc) • 330 B
JavaScript
;
// MODULES //
var isLittleEndian = require( 'utils-is-little-endian' );
// INDICES //
var HIGH;
var LOW;
if ( isLittleEndian ) {
HIGH = 1; // second index
LOW = 0; // first index
} else {
HIGH = 0; // first index
LOW = 1; // second index
}
// EXPORTS //
module.exports = {
'HIGH': HIGH,
'LOW': LOW
};