Home | History | Annotate | Download | only in expr
      1 
      2 ========================
      3 Expression: 1
      4 Object is a number : 1
      5 
      6 ========================
      7 Expression: 123
      8 Object is a number : 123
      9 
     10 ========================
     11 Expression: 1.23
     12 Object is a number : 1.23
     13 
     14 ========================
     15 Expression: 0.123
     16 Object is a number : 0.123
     17 
     18 ========================
     19 Expression: 4.
     20 Object is a number : 4
     21 
     22 ========================
     23 Expression: .4
     24 Object is a number : 0.4
     25 
     26 ========================
     27 Expression: 1.23e3
     28 Object is a number : 1230
     29 
     30 ========================
     31 Expression: 1.23e-3
     32 Object is a number : 0.00123
     33 
     34 ========================
     35 Expression: 1 div 0
     36 Object is a number : Infinity
     37 
     38 ========================
     39 Expression: -1 div 0
     40 Object is a number : -Infinity
     41 
     42 ========================
     43 Expression: 0 div 0
     44 Object is a number : NaN
     45 
     46 ========================
     47 Expression: 1 div -0
     48 Object is a number : -Infinity
     49 
     50 ========================
     51 Expression: (1 div 0) > 0
     52 Object is a Boolean : true
     53 
     54 ========================
     55 Expression: (1 div 0) < 0
     56 Object is a Boolean : false
     57 
     58 ========================
     59 Expression: (-1 div 0) > 0
     60 Object is a Boolean : false
     61 
     62 ========================
     63 Expression: (-1 div 0) < 0
     64 Object is a Boolean : true
     65 
     66 ========================
     67 Expression: (0 div 0) > 0
     68 Object is a Boolean : false
     69 
     70 ========================
     71 Expression: (0 div 0) < 0
     72 Object is a Boolean : false
     73 
     74 ========================
     75 Expression: (1 div -0) > 0
     76 Object is a Boolean : false
     77 
     78 ========================
     79 Expression: (1 div -0) < 0
     80 Object is a Boolean : true
     81 
     82 ========================
     83 Expression: 0 div 0 = 0 div 0
     84 Object is a Boolean : false
     85 
     86 ========================
     87 Expression: 0 div 0 != 0 div 0
     88 Object is a Boolean : true
     89 
     90 ========================
     91 Expression: 0 div 0 > 0 div 0
     92 Object is a Boolean : false
     93 
     94 ========================
     95 Expression: 0 div 0 < 0 div 0
     96 Object is a Boolean : false
     97 
     98 ========================
     99 Expression: 0 div 0 >= 0 div 0
    100 Object is a Boolean : false
    101 
    102 ========================
    103 Expression: 0 div 0 <= 0 div 0
    104 Object is a Boolean : false
    105 
    106 ========================
    107 Expression: 1 div 0 = -1 div 0
    108 Object is a Boolean : false
    109 
    110 ========================
    111 Expression: 1 div 0 != -1 div 0
    112 Object is a Boolean : true
    113 
    114 ========================
    115 Expression: 1 div 0 > -1 div 0
    116 Object is a Boolean : true
    117 
    118 ========================
    119 Expression: 1 div 0 < -1 div 0
    120 Object is a Boolean : false
    121 
    122 ========================
    123 Expression: 1 div 0 >= -1 div 0
    124 Object is a Boolean : true
    125 
    126 ========================
    127 Expression: 1 div 0 <= -1 div 0
    128 Object is a Boolean : false
    129 
    130 ========================
    131 Expression: 1 div 0 = 1 div 0
    132 Object is a Boolean : true
    133 
    134 ========================
    135 Expression: 1 div 0 != 1 div 0
    136 Object is a Boolean : false
    137 
    138 ========================
    139 Expression: 1 div 0 > 1 div 0
    140 Object is a Boolean : false
    141 
    142 ========================
    143 Expression: 1 div 0 < 1 div 0
    144 Object is a Boolean : false
    145 
    146 ========================
    147 Expression: 1 div 0 >= -1 div 0
    148 Object is a Boolean : true
    149 
    150 ========================
    151 Expression: 1 div 0 <= -1 div 0
    152 Object is a Boolean : false
    153 
    154 ========================
    155 Expression: -2 div 0 = -1 div 0
    156 Object is a Boolean : true
    157 
    158 ========================
    159 Expression: 1 div floor(0.1)
    160 Object is a number : Infinity
    161 
    162 ========================
    163 Expression: 1 div floor(-0.1)
    164 Object is a number : -1
    165 
    166 ========================
    167 Expression: 1 div floor(-0)
    168 Object is a number : -Infinity
    169 
    170 ========================
    171 Expression: 1 div floor(0)
    172 Object is a number : Infinity
    173 
    174 ========================
    175 Expression: 1 div ceiling(0.1)
    176 Object is a number : 1
    177 
    178 ========================
    179 Expression: 1 div ceiling(-0.1)
    180 Object is a number : -Infinity
    181 
    182 ========================
    183 Expression: 1 div ceiling(-0)
    184 Object is a number : -Infinity
    185 
    186 ========================
    187 Expression: 1 div ceiling(0)
    188 Object is a number : Infinity
    189 
    190 ========================
    191 Expression: 1 div round(0.1)
    192 Object is a number : Infinity
    193 
    194 ========================
    195 Expression: 1 div round(-0.1)
    196 Object is a number : -Infinity
    197 
    198 ========================
    199 Expression: 1 div round(-0)
    200 Object is a number : -Infinity
    201 
    202 ========================
    203 Expression: 1 div round(0)
    204 Object is a number : Infinity
    205 
    206 ========================
    207 Expression: 1 div number('f')
    208 Object is a number : NaN
    209 
    210 ========================
    211 Expression: number('f') div 1
    212 Object is a number : NaN
    213 
    214 ========================
    215 Expression: 1 div (1 div 0)
    216 Object is a number : 0
    217 
    218 ========================
    219 Expression: (1 div 0) div 1
    220 Object is a number : Infinity
    221 
    222 ========================
    223 Expression: -(1 div 0) div 1
    224 Object is a number : -Infinity
    225 
    226 ========================
    227 Expression: 5 mod 2
    228 Object is a number : 1
    229 
    230 ========================
    231 Expression: 5 mod -2
    232 Object is a number : 1
    233 
    234 ========================
    235 Expression: -5 mod 2
    236 Object is a number : -1
    237 
    238 ========================
    239 Expression: -5 mod -2
    240 Object is a number : -1
    241 
    242 ========================
    243 Expression: 8 mod 3 = 2
    244 Object is a Boolean : true
    245 
    246 ========================
    247 Expression: 12345678901234567890
    248 Object is a number : 1.23457e+19
    249 
    250 ========================
    251 Expression: -12345678901234567890
    252 Object is a number : -1.23457e+19
    253