| @@ 123-130 (lines=8) @@ | ||
| 120 | break; |
|
| 121 | // less than or equal |
|
| 122 | case '<=': |
|
| 123 | case 'lte': |
|
| 124 | if ( |
|
| 125 | self::compare_floats($float1, $float2, '<') |
|
| 126 | || self::compare_floats($float1, $float2) |
|
| 127 | ) { |
|
| 128 | return true; |
|
| 129 | } |
|
| 130 | break; |
|
| 131 | // greater than |
|
| 132 | case '>': |
|
| 133 | case 'gt': |
|
| @@ 143-150 (lines=8) @@ | ||
| 140 | break; |
|
| 141 | // greater than or equal |
|
| 142 | case '>=': |
|
| 143 | case 'gte': |
|
| 144 | if ( |
|
| 145 | self::compare_floats($float1, $float2, '>') |
|
| 146 | || self::compare_floats($float1, $float2) |
|
| 147 | ) { |
|
| 148 | return true; |
|
| 149 | } |
|
| 150 | break; |
|
| 151 | case '<>': |
|
| 152 | case '!=': |
|
| 153 | case 'ne': |
|