Lines Matching defs:prec
62 * This includes width, precision, flags 0- +, and *(arg for wid,prec).
63 * %f, %g, %m, %p have reduced support, support for wid,prec,flags,*, but
459 print_remainder(char* buf, int max, double r, int prec)
464 if(prec > 19) prec = 19; /* max we can do */
465 if(max < prec) return 0;
466 for(i=0; i<prec; i++) {
480 while(len < prec) { /* pad with zeroes, e.g. if 0.0012 */
490 print_float(char* buf, int max, double value, int prec)
492 /* as xxx.xxx if prec==0, no '.', with prec decimals after . */
500 if(prec != 0)
501 len = print_remainder(buf, max, remain, prec);
525 print_float_g(char* buf, int max, double value, int prec)
539 if(prec > before && remain != 0.0) {
541 len = print_remainder(buf, max, remain, prec-before);
587 /* with prec: no more than x characters from this string, stop at 0 */