Lines Matching defs:digits
263 * but for simplicity, it prints only 6 significant digits in either case.
264 * Printing more than 6 digits accurately is hard (at least in the single-
284 int decimals, digits;
314 digits = 0;
315 while (n != 0 || digits < decimals + 1)
317 buf[digits++] = (char)('0' + n % 10);
320 while (digits > 0)
322 if(digits == decimals) UNITY_OUTPUT_CHAR('.');
323 UNITY_OUTPUT_CHAR(buf[--digits]);
341 digits = 0;
342 while (exponent != 0 || digits < 2)
344 buf[digits++] = (char)('0' + exponent % 10);
347 while (digits > 0)
349 UNITY_OUTPUT_CHAR(buf[--digits]);