Lines Matching refs:dec

1006 PHPAPI zend_string *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep)  in _php_math_number_format()  argument
1008 return _php_math_number_format_ex(d, dec, &dec_point, 1, &thousand_sep, 1); in _php_math_number_format()
1011 PHPAPI zend_string *_php_math_number_format_ex(double d, int dec, const char *dec_point, in _php_math_number_format_ex() argument
1028 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex()
1029 dec = MAX(0, dec); in _php_math_number_format_ex()
1030 tmpbuf = strpprintf(0, "%.*F", dec, d); in _php_math_number_format_ex()
1043 if (dec) { in _php_math_number_format_ex()
1064 if (dec) { in _php_math_number_format_ex()
1065 reslen += dec; in _php_math_number_format_ex()
1085 if (dec) { in _php_math_number_format_ex()
1087 size_t topad = (size_t)dec > declen ? dec - declen : 0; in _php_math_number_format_ex()
1129 PHPAPI zend_string *_php_math_number_format_long(zend_long num, zend_long dec, const char *dec_poin… in _php_math_number_format_long() argument
1165 if (dec < 0) { in _php_math_number_format_long()
1167 if (dec < -(sizeof(powers) / sizeof(powers[0]) - 1)) { in _php_math_number_format_long()
1170 power = powers[-dec]; in _php_math_number_format_long()
1198 if (dec > 0) { in _php_math_number_format_long()
1199 reslen += dec; in _php_math_number_format_long()
1213 if (dec > 0) { in _php_math_number_format_long()
1214 topad = (size_t)dec; in _php_math_number_format_long()
1251 zend_long dec = 0; in PHP_FUNCTION() local
1259 Z_PARAM_LONG(dec) in PHP_FUNCTION()
1275 …RETURN_STR(_php_math_number_format_long(Z_LVAL_P(num), dec, dec_point, dec_point_len, thousand_sep… in PHP_FUNCTION()
1279 if (dec >= 0) { in PHP_FUNCTION()
1280 dec_int = ZEND_LONG_INT_OVFL(dec) ? INT_MAX : (int)dec; in PHP_FUNCTION()
1282 dec_int = ZEND_LONG_INT_UDFL(dec) ? INT_MIN : (int)dec; in PHP_FUNCTION()