@@ 3909-3915 (lines=7) @@ | ||
3906 | } |
|
3907 | break; |
|
3908 | // Equality |
|
3909 | case '=': |
|
3910 | if (is_numeric($operand1) && is_numeric($operand2)) { |
|
3911 | $result = (abs($operand1 - $operand2) < $this->delta); |
|
3912 | } else { |
|
3913 | $result = strcmp($operand1, $operand2) == 0; |
|
3914 | } |
|
3915 | break; |
|
3916 | // Greater than or equal |
|
3917 | case '>=': |
|
3918 | if (is_numeric($operand1) && is_numeric($operand2)) { |
|
@@ 3937-3943 (lines=7) @@ | ||
3934 | } |
|
3935 | break; |
|
3936 | // Inequality |
|
3937 | case '<>': |
|
3938 | if (is_numeric($operand1) && is_numeric($operand2)) { |
|
3939 | $result = (abs($operand1 - $operand2) > 1E-14); |
|
3940 | } else { |
|
3941 | $result = strcmp($operand1, $operand2) != 0; |
|
3942 | } |
|
3943 | break; |
|
3944 | } |
|
3945 | ||
3946 | // Log the result details |