@@ 104-112 (lines=9) @@ | ||
101 | break; |
|
102 | // less than |
|
103 | case "<": |
|
104 | case "lt": |
|
105 | if (abs($float1 - $float2) < $epsilon) { |
|
106 | return false; |
|
107 | } else { |
|
108 | if ($float1 < $float2) { |
|
109 | return true; |
|
110 | } |
|
111 | } |
|
112 | break; |
|
113 | // less than or equal |
|
114 | case "<=": |
|
115 | case "lte": |
|
@@ 122-130 (lines=9) @@ | ||
119 | break; |
|
120 | // greater than |
|
121 | case ">": |
|
122 | case "gt": |
|
123 | if (abs($float1 - $float2) < $epsilon) { |
|
124 | return false; |
|
125 | } else { |
|
126 | if ($float1 > $float2) { |
|
127 | return true; |
|
128 | } |
|
129 | } |
|
130 | break; |
|
131 | // greater than or equal |
|
132 | case ">=": |
|
133 | case "gte": |