time-to-botec

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

repl.txt (725B)


      1 
      2 {{alias}}( x )
      3     Returns an integer corresponding to the unbiased exponent of a single-
      4     precision floating-point number.
      5 
      6     Parameters
      7     ----------
      8     x: float
      9         Single-precision floating-point number.
     10 
     11     Returns
     12     -------
     13     out: integer
     14         Unbiased exponent.
     15 
     16     Examples
     17     --------
     18     > var exponent = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( 3.14e34 ) )
     19     114
     20     > exponent = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( 3.14e-34 ) )
     21     -112
     22     > exponent = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( -3.14 ) )
     23     1
     24     > exponent = {{alias}}( 0.0 )
     25     -127
     26     > exponent = {{alias}}( NaN )
     27     128
     28 
     29     See Also
     30     --------
     31