@@ 4021-4027 (lines=7) @@ | ||
4018 | } |
|
4019 | break; |
|
4020 | // Equality |
|
4021 | case '=': |
|
4022 | if (is_numeric($operand1) && is_numeric($operand2)) { |
|
4023 | $result = (abs($operand1 - $operand2) < $this->delta); |
|
4024 | } else { |
|
4025 | $result = strcmp($operand1, $operand2) == 0; |
|
4026 | } |
|
4027 | break; |
|
4028 | // Greater than or equal |
|
4029 | case '>=': |
|
4030 | if (is_numeric($operand1) && is_numeric($operand2)) { |
|
@@ 4049-4055 (lines=7) @@ | ||
4046 | } |
|
4047 | break; |
|
4048 | // Inequality |
|
4049 | case '<>': |
|
4050 | if (is_numeric($operand1) && is_numeric($operand2)) { |
|
4051 | $result = (abs($operand1 - $operand2) > 1E-14); |
|
4052 | } else { |
|
4053 | $result = strcmp($operand1, $operand2) != 0; |
|
4054 | } |
|
4055 | break; |
|
4056 | } |
|
4057 | ||
4058 | // Log the result details |