UNPKG

math-float64-from-words

Version:

Creates a double-precision floating-point number from a higher order word and a lower order word.

28 lines (18 loc) 339 B
'use strict'; // MODULES // var isLittleEndian = require( 'utils-is-little-endian' ); // INDICES // var HIGH; var LOW; if ( isLittleEndian === true ) { HIGH = 1; // second index LOW = 0; // first index } else { HIGH = 0; // first index LOW = 1; // second index } // EXPORTS // module.exports = { 'HIGH': HIGH, 'LOW': LOW };