Lines Matching refs:dec
1136 PHPAPI zend_string *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep) in _php_math_number_format() argument
1138 return _php_math_number_format_ex(d, dec, &dec_point, 1, &thousand_sep, 1); in _php_math_number_format()
1141 PHPAPI zend_string *_php_math_number_format_ex(double d, int dec, char *dec_point, in _php_math_number_format_ex() argument
1158 dec = MAX(0, dec); in _php_math_number_format_ex()
1159 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex()
1160 tmpbuf = strpprintf(0, "%.*F", dec, d); in _php_math_number_format_ex()
1173 if (dec) { in _php_math_number_format_ex()
1194 if (dec) { in _php_math_number_format_ex()
1195 reslen += dec; in _php_math_number_format_ex()
1215 if (dec) { in _php_math_number_format_ex()
1217 size_t topad = (size_t)dec > declen ? dec - declen : 0; in _php_math_number_format_ex()
1264 zend_long dec = 0; in PHP_FUNCTION() local
1272 Z_PARAM_LONG(dec) in PHP_FUNCTION()
1282 RETURN_STR(_php_math_number_format(num, (int)dec, dec_point_chr, thousand_sep_chr)); in PHP_FUNCTION()
1295 RETVAL_STR(_php_math_number_format_ex(num, (int)dec, in PHP_FUNCTION()