Lines Matching refs:dec
1095 PHPAPI char *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep) in _php_math_number_format() argument
1097 return _php_math_number_format_ex(d, dec, &dec_point, 1, &thousand_sep, 1); in _php_math_number_format()
1100 static char *_php_math_number_format_ex_len(double d, int dec, char *dec_point, in _php_math_number_format_ex_len() argument
1117 dec = MAX(0, dec); in _php_math_number_format_ex_len()
1118 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex_len()
1120 tmplen = spprintf(&tmpbuf, 0, "%.*F", dec, d); in _php_math_number_format_ex_len()
1131 if (dec) { in _php_math_number_format_ex_len()
1152 if (dec) { in _php_math_number_format_ex_len()
1153 reslen += dec; in _php_math_number_format_ex_len()
1173 if (dec) { in _php_math_number_format_ex_len()
1175 int topad = dec > declen ? dec - declen : 0; in _php_math_number_format_ex_len()
1221 PHPAPI char *_php_math_number_format_ex(double d, int dec, char *dec_point, in _php_math_number_format_ex() argument
1224 return _php_math_number_format_ex_len(d, dec, dec_point, dec_point_len, in _php_math_number_format_ex()
1234 long dec = 0; in PHP_FUNCTION() local
1239 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|ls!s!", &num, &dec, &dec_point, &dec_point… in PHP_FUNCTION()
1248 RETURN_STRING(_php_math_number_format(num, dec, dec_point_chr, thousand_sep_chr), 0); in PHP_FUNCTION()
1262 Z_STRVAL_P(return_value) = _php_math_number_format_ex_len(num, dec, in PHP_FUNCTION()