double
unsigned 32-bit integer to replace the lower order word of x
double having the same higher order word as x
var low = 5 >>> 0; // => 00000000000000000000000000000101
var x = 3.14e201; // => 0 11010011100 01001000001011000011 10010011110010110101100010000010
var y = setLowWord( x, low ); // => 0 11010011100 01001000001011000011 00000000000000000000000000000101
// returns 3.139998651394392e+201
var PINF = require( `@stdlib/constants/float64/pinf` );
var NINF = require( `@stdlib/constants/float64/ninf` );
var low = 12345678;
var y = setLowWord( PINF, low );
// returns NaN
y = setLowWord( NINF, low );
// returns NaN
y = setLowWord( NaN, low );
// returns NaN
Sets the less significant 32 bits of a double-precision floating-point number.
Notes
If little endian (more significant bits last):
If big endian (more significant bits first):
In which Uint32 can we find the lower order bits? If little endian, the first; if big endian, the second.
References