Lines Matching refs:digit
133 // If 1 <= (numerator+delta_plus) / denominator < 10 then no leading 0 digit
146 uint16_t digit;
147 digit = numerator->DivideModuloIntBignum(*denominator);
148 DCHECK_LE(digit, 9); // digit is a uint16_t and therefore always positive.
149 // digit = numerator / denominator (integer division).
151 buffer[(*length)++] = digit + '0';
184 // If yes, then the next digit would be < 5 and we can round down.
190 // Note that the last digit could not be a '9' as otherwise the whole
215 // Note again that the last digit could not be '9' since this would have
237 uint16_t digit;
238 digit = numerator->DivideModuloIntBignum(*denominator);
239 DCHECK_LE(digit, 9); // digit is a uint16_t and therefore always positive.
240 // digit = numerator / denominator (integer division).
242 buffer[i] = digit + '0';
246 // Generate the last digit.
247 uint16_t digit;
248 digit = numerator->DivideModuloIntBignum(*denominator);
250 digit++;
252 buffer[count - 1] = digit + '0';
254 // carry until we hat a non-'9' or til we reach the first digit.
297 // digit.
544 // It is then easy to kickstart the digit-generation routine.