time-to-botec

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

repl.txt (916B)


      1 
      2 {{alias}}( frac, exp )
      3     Multiplies a double-precision floating-point number by an integer power of
      4     two; i.e., `x = frac * 2^exp`.
      5 
      6     If `frac` equals positive or negative `zero`, `NaN`, or positive or negative
      7     infinity, the function returns a value equal to `frac`.
      8 
      9     Parameters
     10     ----------
     11     frac: number
     12         Fraction.
     13 
     14     exp: number
     15         Exponent.
     16 
     17     Returns
     18     -------
     19     out: number
     20         Double-precision floating-point number equal to `frac * 2^exp`.
     21 
     22     Examples
     23     --------
     24     > var x = {{alias}}( 0.5, 3 )
     25     4.0
     26     > x = {{alias}}( 4.0, -2 )
     27     1.0
     28     > x = {{alias}}( 0.0, 20 )
     29     0.0
     30     > x = {{alias}}( -0.0, 39 )
     31     -0.0
     32     > x = {{alias}}( NaN, -101 )
     33     NaN
     34     > x = {{alias}}( {{alias:@stdlib/constants/float64/pinf}}, 11 )
     35     Infinity
     36     > x = {{alias}}( {{alias:@stdlib/constants/float64/ninf}}, -118 )
     37     -Infinity
     38 
     39     See Also
     40     --------
     41