• Home
  • Raw
  • Download

Lines Matching refs:maximumDigits

433 DigitList::set(int32_t source, int32_t maximumDigits)  in set()  argument
435 set((int64_t)source, maximumDigits); in set()
444 DigitList::set(int64_t source, int32_t maximumDigits) in set() argument
454 if(maximumDigits > 0) in set()
455 round(maximumDigits); in set()
470 DigitList::set(double source, int32_t maximumDigits, UBool fixedPoint) in set() argument
510 if (fixedPoint && -fDecimalAt >= maximumDigits) in set()
514 if (-fDecimalAt == maximumDigits && shouldRoundUp(0)) { in set()
530 if (fixedPoint || (0 < maximumDigits && maximumDigits < fCount)) { in set()
531 round(fixedPoint ? (maximumDigits + fDecimalAt) : maximumDigits); in set()
548 DigitList::round(int32_t maximumDigits) in round() argument
552 if (maximumDigits >= 0 && maximumDigits < fCount) in round()
554 if (shouldRoundUp(maximumDigits)) { in round()
558 while (--maximumDigits >= 0 && ++fDigits[maximumDigits] > '9') in round()
561 if (maximumDigits < 0) in round()
567 maximumDigits = 1; // Adjust the count in round()
571 ++maximumDigits; // Increment for use as count in round()
574 fCount = maximumDigits; in round()
595 UBool DigitList::shouldRoundUp(int32_t maximumDigits) const { in shouldRoundUp()
606 if (fDigits[maximumDigits] == '5' ) { in shouldRoundUp()
607 for (i=maximumDigits+1; i<fCount; ++i) { in shouldRoundUp()
616 return maximumDigits > 0 && (fDigits[maximumDigits-1] % 2 != 0); in shouldRoundUp()
623 return (fDigits[maximumDigits] > '5'); in shouldRoundUp()
630 for (i=maximumDigits; i<fCount; ++i) { in shouldRoundUp()