Home | History | Annotate | Download | only in i18n

Lines Matching refs:digits

79  * This is the zero digit.  The base for the digits returned by getDigit()
100 fContext.digits = fStorage.getCapacity();
137 // Always reset the fContext.digits, even if fDecNumber was not reallocated,
139 fContext.digits = fStorage.getCapacity();
169 c.digits = 1;
185 int32_t savedDigits = fContext.digits;
186 fContext.digits = 1;
188 fContext.digits = savedDigits;
202 // Reduce - remove trailing zero digits.
210 // trim - remove trailing fraction zero digits.
217 // Resets the digit list; sets all the digits to zero.
233 * @return the number of digits written, not including the sign.
320 int32_t adjustedDigits = fDecNumber->digits;
335 return fDecNumber->exponent + fDecNumber->digits;
340 U_ASSERT(c <= fContext.digits);
347 fDecNumber->digits = c;
355 // zero digits. It's bogus, decimalFormatter parsing needs to be cleaned up.
358 return fDecNumber->digits;
364 int32_t count = fDecNumber->digits;
374 int32_t count = fDecNumber->digits;
382 int32_t count = fDecNumber->digits;
392 // the digits are stored least significant first, which requires moving all
393 // existing digits down one to make space for the new one to be appended.
399 // Ignore digits which exceed the precision we can represent
406 fDecNumber->digits = 1;
409 int32_t nDigits = fDecNumber->digits;
410 if (nDigits < fContext.digits) {
416 fDecNumber->digits++;
418 // digits. With decNumber's decimal being after the
463 // the max number of extra characters beyond the number of digits
465 // for the additional digits we retain.
474 // TODO: how many extra digits should be included for an accurate conversion?
581 // Range of in64_t is -9223372036854775808 to 9223372036854775807 (19 digits)
588 // The number of integer digits may differ from the number of digits stored
590 // for 12.345 numIntDigits = 2, number->digits = 5
591 // for 12E4 numIntDigits = 6, number->digits = 2
592 // The conversion ignores the fraction digits in the first case,
593 // and fakes up extra zero digits in the second.
595 // instead of looping over zero digits, multiplying each time.
600 // Loop is iterating over digits starting with the most significant.
602 int32_t digitIndex = fDecNumber->digits - i - 1;
638 // than the number of digits. So says the decNumber library doc.
639 int32_t maxLength = fDecNumber->digits + 14;
664 // Number contains fraction digits.
673 // The number is 9 or fewer digits.
711 // Number contains fraction digits.
720 // The number is 18 or fewer digits.
809 // Figure out a max number of digits to use during the conversion, and
812 if (numDigits > fContext.digits) {
813 // fContext.digits == fStorage.getCapacity()
820 fContext.digits = numDigits;
877 * In practice, for formatting, multiply is by 10, 100 or 1000, so more digits
886 int32_t requiredDigits = this->digits() + other.digits();
887 if (requiredDigits > fContext.digits) {
889 int32_t requiredDigits = this->digits() + other.digits();
902 * could add a few digits, e.g. .25, but not expand arbitrarily.
917 * amount. Never reduce it. Available size is kept in fContext.digits.
931 // At 999,999,999 max digits, exceeding the limit is not too likely!
934 if (requestedCapacity > fContext.digits) {
940 fContext.digits = requestedCapacity;
948 * Round the representation to the given number of digits.
949 * @param maximumDigits The maximum number of digits to be shown.
956 if (maximumDigits >= fDecNumber->digits) {
959 int32_t savedDigits = fContext.digits;
960 fContext.digits = maximumDigits;
962 fContext.digits = savedDigits;
976 uprv_decNumberZero(&scale); // fraction digits.
1003 return fDecNumber->digits + fDecNumber->exponent;
1016 if (idx < 0 || idx >= fDecNumber->digits) {
1024 str.append((const char *) fDecNumber->lsu, fDecNumber->digits, status);
1030 if (maxSigDigits < fDecNumber->digits) {
1039 int32_t digits = getUpperExponent() - exponent;
1040 if (digits > 0) {
1041 round(digits);