time-to-botec

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

repl.txt (1408B)


      1 
      2 {{alias}}( x )
      3     Returns a string giving the literal bit representation of a single-precision
      4     floating-point number.
      5 
      6     Parameters
      7     ----------
      8     x: float
      9         Single-precision floating-point number.
     10 
     11     Returns
     12     -------
     13     str: string
     14         Bit representation.
     15 
     16     Examples
     17     --------
     18     > var str = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( 4.0 ) )
     19     '01000000100000000000000000000000'
     20     > str = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( {{alias:@stdlib/constants/float64/pi}} ) )
     21     '01000000010010010000111111011011'
     22     > str = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( -1.0e38 ) )
     23     '11111110100101100111011010011001'
     24     > str = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( -3.14e-39 ) )
     25     '10000000001000100011000100001011'
     26     > str = {{alias}}( {{alias:@stdlib/number/float64/base/to-float32}}( 1.4e-45 ) )
     27     '00000000000000000000000000000001'
     28     > str = {{alias}}( 0.0 )
     29     '00000000000000000000000000000000'
     30     > str = {{alias}}( -0.0 )
     31     '10000000000000000000000000000000'
     32     > str = {{alias}}( NaN )
     33     '01111111110000000000000000000000'
     34     > str = {{alias}}( {{alias:@stdlib/constants/float32/pinf}} )
     35     '01111111100000000000000000000000'
     36     > str = {{alias}}( {{alias:@stdlib/constants/float32/ninf}} )
     37     '11111111100000000000000000000000'
     38 
     39     See Also
     40     --------
     41