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 StandardPlural
RoundingUtils.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 Precision
UnitsRouter.parseSkeletonToPrecision
(String precisionSkeleton) Methods in com.ibm.icu.impl.units with parameters of type PrecisionModifier and TypeMethodDescriptionprivate BigDecimal
ComplexUnitsConverter.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 TypeClassDescriptionclass
A class that defines a rounding strategy parameterized by a currency to be used when formatting numbers in NumberFormatter.class
A 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 class
Deprecated.This API is ICU internal only.(package private) static class
(package private) static class
(package private) static class
(package private) static class
Used for increments with 5 as the only digit (nickel rounding).(package private) static class
Used for increments with 1 as the only digit.(package private) static class
Used for strange increments like 3.14.(package private) static class
(package private) static class
Methods in com.ibm.icu.number that return PrecisionModifier and TypeMethodDescription(package private) static Precision
Precision.constructFractionSignificant
(FractionPrecision base_, int minSig, int maxSig, NumberFormatter.RoundingPriority priority, boolean retain) (package private) static Precision
Precision.constructFromCurrency
(CurrencyPrecision base_, Currency currency) (package private) static Precision
Precision.constructIncrement
(BigDecimal increment) (package private) static Precision
Precision.constructInfinite()
(package private) static Precision
Precision.constructSignificant
(int minSig, int maxSig) Assumes that minSig <= maxSig.(package private) abstract Precision
Precision.createCopy()
Package-private clone methodstatic Precision
Precision.fixedSignificantDigits
(int minMaxSignificantDigits) Show numbers rounded if necessary to a certain number of significant digits or significant figures.static Precision
Precision.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 Precision
Precision.maxSignificantDigits
(int maxSignificantDigits) Show numbers rounded if necessary to a certain number of significant digits/figures.static Precision
Precision.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 Precision
Precision.minSignificantDigits
(int minSignificantDigits) Always show at least a certain number of significant digits/figures, padding with zeros if necessary.private static Precision
NumberSkeletonImpl.StemToObject.precision
(NumberSkeletonImpl.StemEnum stem) Precision.trailingZeroDisplay
(NumberFormatter.TrailingZeroDisplay trailingZeroDisplay) Configure how trailing zeros are displayed on numbers.static Precision
Precision.unlimited()
Show all available digits to full precision.CurrencyPrecision.withCurrency
(Currency currency) Associates a currency with this rounding strategy.(package private) Precision
Precision.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) void
Precision.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.