repl.txt (1084B)
1 2 {{alias}}( [out,] x ) 3 Splits a double-precision floating-point number into a higher order word 4 (unsigned 32-bit integer) and a lower order word (unsigned 32-bit integer). 5 6 When provided a destination object, the function returns an array with two 7 elements: a higher order word and a lower order word, respectively. The 8 lower order word contains the less significant bits, while the higher order 9 word contains the more significant bits and includes the exponent and sign. 10 11 Parameters 12 ---------- 13 out: Array|TypedArray|Object (optional) 14 Output array. 15 16 x: number 17 Double-precision floating-point number. 18 19 Returns 20 ------- 21 out: Array|TypedArray|Object 22 Higher and lower order words. 23 24 Examples 25 -------- 26 > var w = {{alias}}( 3.14e201 ) 27 [ 1774486211, 2479577218 ] 28 29 // Provide an output array: 30 > var out = new {{alias:@stdlib/array/uint32}}( 2 ); 31 > w = {{alias}}( out, 3.14e201 ) 32 <Uint32Array>[ 1774486211, 2479577218 ] 33 > var bool = ( w === out ) 34 true 35 36 See Also 37 --------