Lines Matching refs:dec

1064 PHPAPI zend_string *_php_math_number_format(double d, int dec, char dec_point, char thousand_sep)  in _php_math_number_format()  argument
1066 return _php_math_number_format_ex(d, dec, &dec_point, 1, &thousand_sep, 1); in _php_math_number_format()
1069 PHPAPI zend_string *_php_math_number_format_ex(double d, int dec, const char *dec_point, in _php_math_number_format_ex() argument
1086 d = _php_math_round(d, dec, PHP_ROUND_HALF_UP); in _php_math_number_format_ex()
1087 dec = MAX(0, dec); in _php_math_number_format_ex()
1088 tmpbuf = strpprintf(0, "%.*F", dec, d); in _php_math_number_format_ex()
1101 if (dec) { in _php_math_number_format_ex()
1122 if (dec) { in _php_math_number_format_ex()
1123 reslen += dec; in _php_math_number_format_ex()
1143 if (dec) { in _php_math_number_format_ex()
1145 size_t topad = (size_t)dec > declen ? dec - declen : 0; in _php_math_number_format_ex()
1187 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
1223 if (dec < 0) { in _php_math_number_format_long()
1225 if (dec < -(sizeof(powers) / sizeof(powers[0]) - 1)) { in _php_math_number_format_long()
1228 power = powers[-dec]; in _php_math_number_format_long()
1256 if (dec > 0) { in _php_math_number_format_long()
1257 reslen += dec; in _php_math_number_format_long()
1271 if (dec > 0) { in _php_math_number_format_long()
1272 topad = (size_t)dec; in _php_math_number_format_long()
1309 zend_long dec = 0; in PHP_FUNCTION() local
1317 Z_PARAM_LONG(dec) in PHP_FUNCTION()
1333 …RETURN_STR(_php_math_number_format_long(Z_LVAL_P(num), dec, dec_point, dec_point_len, thousand_sep… in PHP_FUNCTION()
1343 …RETURN_STR(_php_math_number_format_long((zend_long)Z_DVAL_P(num), dec, dec_point, dec_point_len, t… in PHP_FUNCTION()
1347 if (dec >= 0) { in PHP_FUNCTION()
1348 dec_int = ZEND_LONG_INT_OVFL(dec) ? INT_MAX : (int)dec; in PHP_FUNCTION()
1350 dec_int = ZEND_LONG_INT_UDFL(dec) ? INT_MIN : (int)dec; in PHP_FUNCTION()