• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/

Lines Matching refs:digits

50  * This is the zero digit.  The base for the digits returned by getDigit()
71 fContext.digits = fStorage.getCapacity();
108 // Always reset the fContext.digits, even if fDecNumber was not reallocated,
110 fContext.digits = fStorage.getCapacity();
142 c.digits = 1;
158 int32_t savedDigits = fContext.digits;
159 fContext.digits = 1;
161 fContext.digits = savedDigits;
175 // Reduce - remove trailing zero digits.
183 // trim - remove trailing fraction zero digits.
190 // Resets the digit list; sets all the digits to zero.
206 * @return the number of digits written, not including the sign.
293 int32_t adjustedDigits = fDecNumber->digits;
308 return fDecNumber->exponent + fDecNumber->digits;
313 U_ASSERT(c <= fContext.digits);
320 fDecNumber->digits = c;
328 // zero digits. It's bogus, decimalFormatter parsing needs to be cleaned up.
331 return fDecNumber->digits;
337 int32_t count = fDecNumber->digits;
347 int32_t count = fDecNumber->digits;
355 int32_t count = fDecNumber->digits;
365 // the digits are stored least significant first, which requires moving all
366 // existing digits down one to make space for the new one to be appended.
372 // Ignore digits which exceed the precision we can represent
379 fDecNumber->digits = 1;
382 int32_t nDigits = fDecNumber->digits;
383 if (nDigits < fContext.digits) {
389 fDecNumber->digits++;
391 // digits. With decNumber's decimal being after the
451 // the max number of extra characters beyond the number of digits
453 // for the additional digits we retain.
462 // TODO: how many extra digits should be included for an accurate conversion?
495 if (fDecNumber->digits + fDecNumber->exponent > 10) {
523 // Range of in64_t is -9223372036854775808 to 9223372036854775807 (19 digits)
525 if (fDecNumber->digits + fDecNumber->exponent > 19) {
530 // The number of integer digits may differ from the number of digits stored
532 // for 12.345 numIntDigits = 2, number->digits = 5
533 // for 12E4 numIntDigits = 6, number->digits = 2
534 // The conversion ignores the fraction digits in the first case,
535 // and fakes up extra zero digits in the second.
537 // instead of looping over zero digits, multiplying each time.
539 int32_t numIntDigits = fDecNumber->digits + fDecNumber->exponent;
542 // Loop is iterating over digits starting with the most significant.
544 int32_t digitIndex = fDecNumber->digits - i - 1;
580 // than the number of digits. So says the decNumber library doc.
581 int32_t maxLength = fDecNumber->digits + 14;
606 // Number contains fraction digits.
614 if (fDecNumber->digits + fDecNumber->exponent < 10) {
615 // The number is 9 or fewer digits.
653 // Number contains fraction digits.
661 if (fDecNumber->digits + fDecNumber->exponent < 19) {
662 // The number is 18 or fewer digits.
762 // Figure out a max number of digits to use during the conversion, and
765 if (numDigits > fContext.digits) {
766 // fContext.digits == fStorage.getCapacity()
773 fContext.digits = numDigits;
830 * In practice, for formatting, multiply is by 10, 100 or 1000, so more digits
836 int32_t requiredDigits = this->digits() + other.digits();
837 if (requiredDigits > fContext.digits) {
839 int32_t requiredDigits = this->digits() + other.digits();
852 * could add a few digits, e.g. .25, but not expand arbitrarily.
867 * amount. Never reduce it. Available size is kept in fContext.digits.
881 // At 999,999,999 max digits, exceeding the limit is not too likely!
884 if (requestedCapacity > fContext.digits) {
890 fContext.digits = requestedCapacity;
898 * Round the representation to the given number of digits.
899 * @param maximumDigits The maximum number of digits to be shown.
905 int32_t savedDigits = fContext.digits;
906 fContext.digits = maximumDigits;
908 fContext.digits = savedDigits;
921 uprv_decNumberZero(&scale); // fraction digits.