Lines Matching defs:digits

407             /* Underscores are only allowed after digits. */
414 /* Underscores are only allowed before digits. */
478 The exponent always contains at least two digits, and only as many more digits
512 /* If there are 2 exactly digits, we're done,
518 /* There are more than 2 digits in the exponent. See
536 /* If there are fewer than 2 digits, add zeros
550 remove the decimal point if all digits following it are zero. The numeric
569 /* scan any digits after the point */
595 adding a '.0' would produce too many significant digits (see issue 5864).
637 significant digits as were requested. Switch to
776 MIN_EXPONENT_DIGITS digits, providing the buffer is large enough
785 extra character would produce more significant digits that we
831 /* The repr() precision (17 significant decimal digits) is the
853 1 for each digit of the exponent; if we allow 19 digits
857 This gives a total of 24 + the number of digits in the significand,
858 and the number of digits in the significand is:
863 for 'f' format: precision digits after the point, at least 1
864 before. To figure out how many digits appear before the point
871 digits before the point (where the 'ceiling' allows for the
878 So we allow room for precision+1 digits for all formats, plus an
879 extra floor(exp/3) digits for 'f' format.
1016 char *digits, *digits_end;
1024 digits = _Py_dg_dtoa(d, mode, precision, &decpt_as_int, &sign,
1029 if (digits == NULL) {
1034 assert(digits_end != NULL && digits_end >= digits);
1035 digits_len = digits_end - digits;
1038 (digits_len == 0 || (digits_len == 1 && digits[0] == '0'))) {
1042 if (digits_len && !Py_ISDIGIT(digits[0])) {
1048 if (digits[0] == 'n' || digits[0] == 'N')
1066 if (digits[0] == 'i' || digits[0] == 'I') {
1073 else if (digits[0] == 'n' || digits[0] == 'N') {
1093 /* We got digits back, format them. We may need to pad 'digits'
1097 [<sign>]<zeros><digits><zeros>[<exponent>]
1100 decimal point that could appear either in <digits> or in the
1104 string 'digits' (starting at index 0) padded on both the left and
1175 /* exponent "e+100", max 3 numerical digits */
1211 strncpy(p, digits, decpt-0);
1214 strncpy(p, digits+decpt, digits_len-decpt);
1218 strncpy(p, digits, digits_len);
1252 if (digits)
1253 _Py_dg_freedtoa(digits);