time-to-botec

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

repl.txt (536B)


      1 
      2 {{alias}}( x )
      3     Rounds a numeric value to the nearest power of ten on a linear scale.
      4 
      5     Parameters
      6     ----------
      7     x: number
      8         Input value.
      9 
     10     Returns
     11     -------
     12     y: number
     13         Rounded value.
     14 
     15     Examples
     16     --------
     17     > var y = {{alias}}( 3.14 )
     18     1.0
     19     > y = {{alias}}( -4.2 )
     20     -1.0
     21     > y = {{alias}}( -4.6 )
     22     -1.0
     23     > y = {{alias}}( 9.5 )
     24     10.0
     25     > y = {{alias}}( 13.0 )
     26     10.0
     27     > y = {{alias}}( -13.0 )
     28     -10.0
     29     > y = {{alias}}( -0.0 )
     30     -0.0
     31 
     32     See Also
     33     --------
     34