@@ 77-85 (lines=9) @@ | ||
74 | break; |
|
75 | // less than |
|
76 | case "<": |
|
77 | case "lt": |
|
78 | if (abs($float1 - $float2) < $epsilon) { |
|
79 | return false; |
|
80 | } else { |
|
81 | if ($float1 < $float2) { |
|
82 | return true; |
|
83 | } |
|
84 | } |
|
85 | break; |
|
86 | // less than or equal |
|
87 | case "<=": |
|
88 | case "lte": |
|
@@ 95-103 (lines=9) @@ | ||
92 | break; |
|
93 | // greater than |
|
94 | case ">": |
|
95 | case "gt": |
|
96 | if (abs($float1 - $float2) < $epsilon) { |
|
97 | return false; |
|
98 | } else { |
|
99 | if ($float1 > $float2) { |
|
100 | return true; |
|
101 | } |
|
102 | } |
|
103 | break; |
|
104 | // greater than or equal |
|
105 | case ">=": |
|
106 | case "gte": |