Lines Matching refs:magnitude
170 int32_t magnitude = getMagnitude(); in applyMaxInteger() local
171 if (maxInt <= magnitude) { in applyMaxInteger()
172 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
301 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local
302 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude()
311 int32_t magnitude = scale; in getLowerDisplayMagnitude() local
312 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude()
316 int8_t DecimalQuantity::getDigit(int32_t magnitude) const { in getDigit()
321 return getDigitPos(magnitude - scale); in getDigit()
552 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local
553 result = result * 10 + getDigitPos(magnitude - scale - exponent); in toLong()
563 int32_t magnitude = -1 - exponent; in toFractionLong() local
568 for (; magnitude >= lowerMagnitude && result <= 1e18L; magnitude--) { in toFractionLong()
569 result = result * 10 + getDigitPos(magnitude - scale); in toFractionLong()
590 int magnitude = getMagnitude(); in fitsInLong() local
591 if (magnitude < 18) { in fitsInLong()
594 if (magnitude > 18) { in fitsInLong()
660 void DecimalQuantity::roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& statu… in roundToNickel() argument
661 roundToMagnitude(magnitude, roundingMode, true, status); in roundToNickel()
664 void DecimalQuantity::roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& st… in roundToMagnitude() argument
665 roundToMagnitude(magnitude, roundingMode, false, status); in roundToMagnitude()
668 void DecimalQuantity::roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, U… in roundToMagnitude() argument
671 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
788 roundToMagnitude(magnitude, roundingMode, nickel, status); // start over in roundToMagnitude()
826 scale = magnitude; in roundToMagnitude()