Lines Matching refs:dec
1102 PHPAPI zend_string *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep) in _php_math_number_format() argument
1104 return _php_math_number_format_ex(d, dec, &dec_point, 1, &thousand_sep, 1); in _php_math_number_format()
1107 PHPAPI zend_string *_php_math_number_format_ex(double d, int dec, char *dec_point, in _php_math_number_format_ex() argument
1124 dec = MAX(0, dec); in _php_math_number_format_ex()
1125 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex()
1126 tmpbuf = strpprintf(0, "%.*F", dec, d); in _php_math_number_format_ex()
1134 if (dec) { in _php_math_number_format_ex()
1155 if (dec) { in _php_math_number_format_ex()
1156 reslen += dec; in _php_math_number_format_ex()
1176 if (dec) { in _php_math_number_format_ex()
1178 size_t topad = dec > declen ? dec - declen : 0; in _php_math_number_format_ex()
1225 zend_long dec = 0; in PHP_FUNCTION() local
1233 Z_PARAM_LONG(dec) in PHP_FUNCTION()
1243 RETURN_STR(_php_math_number_format(num, (int)dec, dec_point_chr, thousand_sep_chr)); in PHP_FUNCTION()
1256 RETVAL_STR(_php_math_number_format_ex(num, (int)dec, in PHP_FUNCTION()