double
unsigned 32-bit integer to replace the higher order word of x
double having the same lower order word as x
var high = 5 >>> 0; // => 0 00000000000 00000000000000000101
var y = setHighWord( 3.14e201, high ); // => 0 00000000000 0000000000000000010110010011110010110101100010000010
// returns 1.18350528745e-313
var PINF = require( `@stdlib/constants/float64/pinf` ); // => 0 11111111111 00000000000000000000 00000000000000000000000000000000
var high = 1072693248 >>> 0; // => 0 01111111111 00000000000000000000
// Set the higher order bits of `+infinity` to return `1`:
var y = setHighWord( PINF, high ); // => 0 01111111111 0000000000000000000000000000000000000000000000000000
// returns 1.0
Sets the more 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 higher order bits? If little endian, the second; if big endian, the first.
References