Lines Matching refs:value
54 ecvt(double value, int ndigit, int *decpt, int *sign) in ecvt() argument
56 return (cvt(value, ndigit, decpt, sign, 0)); in ecvt()
60 fcvt(double value, int ndigit, int *decpt, int *sign) in fcvt() argument
62 return (cvt(value, ndigit, decpt, sign, 1)); in fcvt()
66 cvt(double value, int ndigit, int *decpt, int *sign, int f_flag) in cvt() argument
73 if (IsNANorINF(value)) { in cvt()
74 if (IsINF(value)) /* value is an INF, return "inf" */ in cvt()
82 if ((*sign = (value < 0.0)) != 0) in cvt()
83 value = -value; in cvt()
85 if (value != 0.0) { in cvt()
103 if (value >= 2.0 * MAXPOWTWO) /* can't be precisely integral */ in cvt()
105 for (; value >= sp->p10; *decpt += sp->n) in cvt()
106 value /= sp->p10; in cvt()
108 else if (value >= 10.0) { /* convert integer part separately */ in cvt()
111 while ((powtemp = 10.0 * pow10) <= value) in cvt()
114 int digit = value/pow10; in cvt()
116 value -= digit * pow10; in cvt()
121 } else if (value < 1.0) in cvt()
123 for (; value * sp->p10 < 10.0; *decpt -= sp->n) in cvt()
124 value *= sp->p10; in cvt()
133 if (value == 0 || p >= &buf[NMAX]) in cvt()
137 *p = (intx = (int)value) + '0'; in cvt()
138 value = 10.0 * (value - (double)intx); in cvt()