Lines Matching refs:places
140 PHPAPI double _php_math_round(double value, int places, int mode) { in _php_math_round() argument
149 places = places < INT_MIN+1 ? INT_MIN+1 : places; in _php_math_round()
152 f1 = php_intpow10(abs(places)); in _php_math_round()
157 if (precision_places > places && precision_places - places < 15) { in _php_math_round()
170 use_precision = places - precision_places; in _php_math_round()
178 if (places >= 0) { in _php_math_round()
193 if (abs(places) < 23) { in _php_math_round()
194 if (places > 0) { in _php_math_round()
209 snprintf(buf, 39, "%15fe%d", tmp_value, -places); in _php_math_round()
371 int places = 0; in PHP_FUNCTION() local
383 places = precision > INT_MAX ? INT_MAX : (int)precision; in PHP_FUNCTION()
385 places = precision <= INT_MIN ? INT_MIN+1 : (int)precision; in PHP_FUNCTION()
388 places = precision; in PHP_FUNCTION()
396 if (places >= 0) { in PHP_FUNCTION()
403 return_val = _php_math_round(return_val, (int)places, (int)mode); in PHP_FUNCTION()