Lines Matching refs:val
167 double val;
189 val = _Py_parse_inf_or_nan(nptr, endptr);
191 return val;
262 return val;
275 val = strtod(copy, &fail_pos);
292 val = strtod(digits_pos, &fail_pos);
299 val = -val;
302 return val;
795 char * PyOS_double_to_string(double val,
865 we have to examine the size of the number. If fabs(val) < 1.0
867 fabs(val) >= 1.0, then there are at most
869 1+floor(log10(ceiling(fabs(val))))
872 possibility that the rounding rounds the integer part of val
875 <= fabs(val)/2**exp < 1.0. This exp can be obtained from
883 if (Py_IS_NAN(val) || Py_IS_INFINITY(val))
888 if (format_code == 'f' && fabs(val) >= 1.0) {
889 frexp(val, &exp);
901 if (Py_IS_NAN(val)) {
904 } else if (Py_IS_INFINITY(val)) {
905 if (copysign(1., val) == 1.)
918 _PyOS_ascii_formatd(buf, bufsize, format, val, precision);
1259 char * PyOS_double_to_string(double val,
1317 return format_float_short(val, format_code, mode, precision,