• Home
  • Raw
  • Download

Lines Matching refs:ndigits

1091 _Py_double_round(double x, int ndigits) {  in _Py_double_round()  argument
1101 if (ndigits == 0) { in _Py_double_round()
1147 if (val == -ndigits-1) { in _Py_double_round()
1148 if (ndigits >= 0) in _Py_double_round()
1150 else if (ndigits >= -FIVE_POW_LIMIT) { in _Py_double_round()
1153 for (i=0; i < -ndigits; i++) in _Py_double_round()
1165 buf = _Py_dg_dtoa(x, 3, ndigits+halfway_case, &decpt, &sign, &buf_end); in _Py_double_round()
1180 assert(buflen - decpt == ndigits+1); in _Py_double_round()
1235 _Py_double_round(double x, int ndigits) { in _Py_double_round() argument
1237 if (ndigits >= 0) { in _Py_double_round()
1238 if (ndigits > 22) { in _Py_double_round()
1241 pow1 = pow(10.0, (double)(ndigits-22)); in _Py_double_round()
1245 pow1 = pow(10.0, (double)ndigits); in _Py_double_round()
1254 pow1 = pow(10.0, (double)-ndigits); in _Py_double_round()
1264 if (ndigits >= 0) in _Py_double_round()
1457 Py_ssize_t length, ndigits, fdigits, i; in float_fromhex() local
1565 ndigits = coeff_end - coeff_start; in float_fromhex()
1567 if (ndigits == 0) in float_fromhex()
1569 if (ndigits > MIN(DBL_MIN_EXP - DBL_MANT_DIG - LONG_MIN/2, in float_fromhex()
1599 while (ndigits > 0 && HEX_DIGIT(ndigits-1) == 0) in float_fromhex()
1600 ndigits--; in float_fromhex()
1601 if (ndigits == 0 || exp < LONG_MIN/2) { in float_fromhex()
1612 top_exp = exp + 4*((long)ndigits - 1); in float_fromhex()
1613 for (digit = HEX_DIGIT(ndigits-1); digit != 0; digit /= 2) in float_fromhex()
1631 for (i = ndigits-1; i >= 0; i--) in float_fromhex()
1640 for (i = ndigits-1; i > key_digit; i--) in float_fromhex()