Uses of Class
com.ibm.icu.number.Precision
Packages that use Precision
-
Uses of Precision in com.ibm.icu.impl.number
Fields in com.ibm.icu.impl.number declared as PrecisionMethods in com.ibm.icu.impl.number with parameters of type PrecisionModifier and TypeMethodDescriptionstatic StandardPluralRoundingUtils.getPluralSafe(Precision rounder, PluralRules rules, DecimalQuantity dq) Computes the plural form after copying the number and applying rounding rules. -
Uses of Precision in com.ibm.icu.impl.units
Methods in com.ibm.icu.impl.units that return PrecisionModifier and TypeMethodDescriptionprivate static PrecisionUnitsRouter.parseSkeletonToPrecision(String precisionSkeleton) Methods in com.ibm.icu.impl.units with parameters of type PrecisionModifier and TypeMethodDescriptionprivate BigDecimalComplexUnitsConverter.applyRounder(List<BigInteger> intValues, BigDecimal quantity, Precision rounder) Applies the rounder to the quantity (last element) and bubble up any carried value to all the intValues.ComplexUnitsConverter.convert(BigDecimal quantity, Precision rounder) Returns outputMeasures which is an array with the corresponding values. -
Uses of Precision in com.ibm.icu.number
Subclasses of Precision in com.ibm.icu.numberModifier and TypeClassDescriptionclassA class that defines a rounding strategy parameterized by a currency to be used when formatting numbers in NumberFormatter.classA class that defines a rounding strategy based on a number of fraction places and optionally significant digits to be used when formatting numbers in NumberFormatter.static classDeprecated.This API is ICU internal only.(package private) static class(package private) static class(package private) static class(package private) static classUsed for increments with 5 as the only digit (nickel rounding).(package private) static classUsed for increments with 1 as the only digit.(package private) static classUsed for strange increments like 3.14.(package private) static class(package private) static classMethods in com.ibm.icu.number that return PrecisionModifier and TypeMethodDescription(package private) static PrecisionPrecision.constructFractionSignificant(FractionPrecision base_, int minSig, int maxSig, NumberFormatter.RoundingPriority priority, boolean retain) (package private) static PrecisionPrecision.constructFromCurrency(CurrencyPrecision base_, Currency currency) (package private) static PrecisionPrecision.constructIncrement(BigDecimal increment) (package private) static PrecisionPrecision.constructInfinite()(package private) static PrecisionPrecision.constructSignificant(int minSig, int maxSig) Assumes that minSig invalid input: '<'= maxSig.(package private) abstract PrecisionPrecision.createCopy()Package-private clone methodstatic PrecisionPrecision.fixedSignificantDigits(int minMaxSignificantDigits) Show numbers rounded if necessary to a certain number of significant digits or significant figures.static PrecisionPrecision.increment(BigDecimal roundingIncrement) Show numbers rounded if necessary to the closest multiple of a certain rounding increment.Deprecated.This API is ICU internal only.static PrecisionPrecision.maxSignificantDigits(int maxSignificantDigits) Show numbers rounded if necessary to a certain number of significant digits/figures.static PrecisionPrecision.minMaxSignificantDigits(int minSignificantDigits, int maxSignificantDigits) Show numbers rounded if necessary to a certain number of significant digits/figures; in addition, always show at least a certain number of significant digits, padding with zeros if necessary.static PrecisionPrecision.minSignificantDigits(int minSignificantDigits) Always show at least a certain number of significant digits/figures, padding with zeros if necessary.private static PrecisionNumberSkeletonImpl.StemToObject.precision(NumberSkeletonImpl.StemEnum stem) Precision.trailingZeroDisplay(NumberFormatter.TrailingZeroDisplay trailingZeroDisplay) Configure how trailing zeros are displayed on numbers.static PrecisionPrecision.unlimited()Show all available digits to full precision.CurrencyPrecision.withCurrency(Currency currency) Associates a currency with this rounding strategy.(package private) PrecisionPrecision.withLocaleData(Currency currency) Returns a valid working Rounder.FractionPrecision.withMaxDigits(int maxSignificantDigits) Ensure that no more than this number of significant digits are retained when rounding according to fraction rules.FractionPrecision.withMinDigits(int minSignificantDigits) Ensure that no less than this number of significant digits are retained when rounding according to fraction rules.Precision.withMode(MathContext mathContext) Deprecated.This API is ICU internal only.FractionPrecision.withSignificantDigits(int minSignificantDigits, int maxSignificantDigits, NumberFormatter.RoundingPriority priority) Override maximum fraction digits with maximum significant digits depending on the magnitude of the number.Methods in com.ibm.icu.number with parameters of type PrecisionModifier and TypeMethodDescription(package private) voidPrecision.createCopyHelper(Precision copy) Call this function to copy the fields from the Precision base class.Deprecated.This API is ICU internal only.Specifies the rounding precision to use when formatting numbers.