time-to-botec

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

repl.txt (1597B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is a square triangular number.
      4 
      5     Return values are not reliable for numbers greater than 1125899906842624.
      6 
      7     Parameters
      8     ----------
      9     value: any
     10         Value to test.
     11 
     12     Returns
     13     -------
     14     bool: boolean
     15         Boolean indicating whether value is a square triangular number.
     16 
     17     Examples
     18     --------
     19     > var bool = {{alias}}( 36.0 )
     20     true
     21     > bool = {{alias}}( new Number( 36.0 ) )
     22     true
     23     > bool = {{alias}}( 3.14 )
     24     false
     25     > bool = {{alias}}( -5.0 )
     26     false
     27     > bool = {{alias}}( null )
     28     false
     29 
     30 
     31 {{alias}}.isPrimitive( value )
     32     Tests if a value is a number primitive which is a square triangular number.
     33 
     34     Parameters
     35     ----------
     36     value: any
     37         Value to test.
     38 
     39     Returns
     40     -------
     41     bool: boolean
     42         Boolean indicating whether value is a number primitive which is a
     43         square triangular number.
     44 
     45     Examples
     46     --------
     47     > var bool = {{alias}}.isPrimitive( 36.0 )
     48     true
     49     > bool = {{alias}}.isPrimitive( new Number( 36.0 ) )
     50     false
     51 
     52 
     53 {{alias}}.isObject( value )
     54     Tests if a value is a number object having a value which is a square
     55     triangular number.
     56 
     57     Parameters
     58     ----------
     59     value: any
     60         Value to test.
     61 
     62     Returns
     63     -------
     64     bool: boolean
     65         Boolean indicating whether value is a number object having a value which
     66         is a square triangular number.
     67 
     68     Examples
     69     --------
     70     > var bool = {{alias}}.isObject( 36.0 )
     71     false
     72     > bool = {{alias}}.isObject( new Number( 36.0 ) )
     73     true
     74 
     75 
     76     See Also
     77     --------
     78