time-to-botec

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

repl.txt (650B)


      1 
      2 {{alias}}( x )
      3     Rounds a numeric value to the nearest power of ten toward negative infinity.
      4 
      5     The function may not return accurate results for subnormals due to a general
      6     loss in precision.
      7 
      8     Parameters
      9     ----------
     10     x: number
     11         Input value.
     12 
     13     Returns
     14     -------
     15     y: number
     16         Rounded value.
     17 
     18     Examples
     19     --------
     20     > var y = {{alias}}( 3.14 )
     21     1.0
     22     > y = {{alias}}( -4.2 )
     23     -10.0
     24     > y = {{alias}}( -4.6 )
     25     -10.0
     26     > y = {{alias}}( 9.5 )
     27     1.0
     28     > y = {{alias}}( 13.0 )
     29     10.0
     30     > y = {{alias}}( -13.0 )
     31     -100.0
     32     > y = {{alias}}( -0.0 )
     33     -0.0
     34 
     35     See Also
     36     --------
     37