time-to-botec

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

repl.txt (630B)


      1 
      2 {{alias}}( x )
      3     Tests if a finite numeric value is an odd number.
      4 
      5     The function assumes a finite number. If provided positive or negative
      6     infinity, the function will return `true`, when, in fact, the result is
      7     undefined.
      8 
      9     Parameters
     10     ----------
     11     x: number
     12         Value to test.
     13 
     14     Returns
     15     -------
     16     bool: boolean
     17         Boolean indicating whether the value is an odd number.
     18 
     19     Examples
     20     --------
     21     > var bool = {{alias}}( 5.0 )
     22     true
     23     > bool = {{alias}}( -2.0 )
     24     false
     25     > bool = {{alias}}( 0.0 )
     26     false
     27     > bool = {{alias}}( NaN )
     28     false
     29 
     30     See Also
     31     --------
     32