time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (1506B)


      1 
      2 {{alias}}( x )
      3     Converts an integer-valued double-precision floating-point number to a
      4     signed 64-bit integer byte array according to host byte order (endianness).
      5 
      6     This function assumes that the input value is less than the maximum safe
      7     double-precision floating-point integer plus one (i.e., `2**53`).
      8 
      9     Parameters
     10     ----------
     11     x: integer
     12         Integer-valued double-precision floating-point number.
     13 
     14     Returns
     15     -------
     16     out: Uint8Array
     17         Byte array.
     18 
     19     Examples
     20     --------
     21     > var y = {{alias}}( 4294967297.0 )
     22     <Uint8Array>
     23 
     24 
     25 {{alias}}.assign( x, out, stride, offset )
     26     Converts an integer-valued double-precision floating-point number to a
     27     signed 64-bit integer byte array according to host byte order (endianness)
     28     and assigns results to a provided output array.
     29 
     30     This function assumes that the input value is less than the maximum safe
     31     double-precision floating-point integer plus one (i.e., `2**53`).
     32 
     33     Parameters
     34     ----------
     35     x: integer
     36         Integer-valued double-precision floating-point number.
     37 
     38     out: Array|TypedArray|Object
     39         Output array.
     40 
     41     stride: integer
     42         Output array stride.
     43 
     44     offset: integer
     45         Output array index offset.
     46 
     47     Returns
     48     -------
     49     out: Array|TypedArray|Object
     50         Output array.
     51 
     52     Examples
     53     --------
     54     > var out = new {{alias:@stdlib/array/uint8}}( 16 );
     55     > var y = {{alias}}( 4294967297.0, out, 2, 1 )
     56     <Uint8Array>
     57 
     58     See Also
     59     --------