Lines Matching refs:precision
370 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len) in php_conv_fp() argument
376 if (precision >= NDIG - 1) { in php_conv_fp()
377 precision = NDIG - 2; in php_conv_fp()
381 p_orig = p = php_fcvt(num, precision, &decimal_point, is_negative); in php_conv_fp()
383 p_orig = p = php_ecvt(num, precision + 1, &decimal_point, is_negative); in php_conv_fp()
398 if (num != 0 || precision > 0) { in php_conv_fp()
400 if (precision > 0) { in php_conv_fp()
418 if (precision > 0 || add_dp) { in php_conv_fp()
424 if (precision > 0 || add_dp) { in php_conv_fp()
549 #define FIX_PRECISION( adjust, precision, s, s_len ) \ argument
551 while ( s_len < (size_t)precision ) \
592 int precision = 0; in format_converter() local
687 STR_TO_DEC(fmt, precision); in format_converter()
689 precision = va_arg(ap, int); in format_converter()
691 if (precision < 0) in format_converter()
692 precision = 0; in format_converter()
694 precision = 0; in format_converter()
696 if (precision > FORMAT_CONV_MAX_PRECISION) { in format_converter()
697 precision = FORMAT_CONV_MAX_PRECISION; in format_converter()
777 if (adjust_precision && (size_t)precision < s_len) { in format_converter()
778 s_len = precision; in format_converter()
862 FIX_PRECISION(adjust_precision, precision, s, s_len); in format_converter()
909 FIX_PRECISION(adjust_precision, precision, s, s_len); in format_converter()
951 FIX_PRECISION(adjust_precision, precision, s, s_len); in format_converter()
964 if (adjust_precision && (size_t)precision < s_len) { in format_converter()
965 s_len = precision; in format_converter()
1005 (adjust_precision == NO) ? FLOAT_DIGITS : precision, in format_converter()
1049 precision = FLOAT_DIGITS; in format_converter()
1050 } else if (precision == 0) { in format_converter()
1051 precision = 1; in format_converter()
1063 …s = php_gcvt(fp_num, precision, (*fmt=='H' || *fmt == 'k') ? '.' : LCONV_DECIMAL_POINT, (*fmt == '… in format_converter()