@@ 138-140 (lines=3) @@ | ||
135 | $result = null; |
|
136 | $compare = false; |
|
137 | switch ($action) { |
|
138 | case '+': |
|
139 | $result = (self::$blnBcmath) ? bcadd($number1, $number2, $precision) /* string */ : ($number1 + $number2); |
|
140 | break; |
|
141 | case '-': |
|
142 | $result = (self::$blnBcmath) ? bcsub($number1, $number2, $precision) /* string */ : ($number1 - $number2); |
|
143 | break; |
|
@@ 144-146 (lines=3) @@ | ||
141 | case '-': |
|
142 | $result = (self::$blnBcmath) ? bcsub($number1, $number2, $precision) /* string */ : ($number1 - $number2); |
|
143 | break; |
|
144 | case '*': |
|
145 | $result = (self::$blnBcmath) ? bcmul($number1, $number2, $precision) /* string */ : ($number1 * $number2); |
|
146 | break; |
|
147 | case 'sqrt': |
|
148 | $result = (self::$blnBcmath) ? bcsqrt($number1, $precision) /* string */ : sqrt($number1); |
|
149 | break; |