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