time-to-botec

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

repl.txt (485B)


      1 
      2 {{alias}}( x )
      3     Rounds a numeric value to the nearest integer.
      4 
      5     Ties are rounded toward positive infinity.
      6 
      7     Parameters
      8     ----------
      9     x: number
     10         Input value.
     11 
     12     Returns
     13     -------
     14     y: number
     15         Rounded value.
     16 
     17     Examples
     18     --------
     19     > var y = {{alias}}( 3.14 )
     20     3.0
     21     > y = {{alias}}( -4.2 )
     22     -4.0
     23     > y = {{alias}}( -4.6 )
     24     -5.0
     25     > y = {{alias}}( 9.5 )
     26     10.0
     27     > y = {{alias}}( -0.0 )
     28     -0.0
     29 
     30     See Also
     31     --------
     32