Lines Matching refs:num_digits
2313 void fallback_format(Double d, int num_digits, bool binary32, buffer<char>& buf,
2363 if (num_digits < 0) {
2367 num_digits = 0;
2374 data[num_digits++] = static_cast<char>('0' + digit);
2377 ++data[num_digits - 1];
2382 ++data[num_digits - 1];
2384 buf.try_resize(to_unsigned(num_digits));
2385 exp10 -= num_digits - 1;
2394 exp10 -= num_digits - 1;
2395 if (num_digits == 0) {
2401 buf.try_resize(to_unsigned(num_digits));
2402 for (int i = 0; i < num_digits - 1; ++i) {
2412 buf[num_digits - 1] = overflow;
2414 for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) {
2426 buf[num_digits - 1] = static_cast<char>('0' + digit);
2482 auto num_digits = buf.size();
2483 while (num_digits > 0 && buf[num_digits - 1] == '0') {
2484 --num_digits;
2487 buf.try_resize(num_digits);