Package | Description |
---|---|
com.ibm.icu.number |
Library for localized number formatting introduced in ICU 60; for usage, see com.ibm.icu.number.NumberFormatter.
|
Modifier and Type | Method and Description |
---|---|
static FractionPrecision |
Precision.fixedFraction(int minMaxFractionPlaces)
Show numbers rounded if necessary to a certain number of fraction places (numerals after the
decimal separator).
|
static FractionPrecision |
Precision.integer()
Show numbers rounded if necessary to the nearest integer.
|
static FractionPrecision |
Precision.maxFraction(int maxFractionPlaces)
Show numbers rounded if necessary to a certain number of fraction places (numerals after the
decimal separator).
|
static FractionPrecision |
Precision.minFraction(int minFractionPlaces)
Always show at least a certain number of fraction places after the decimal separator, padding with
zeros if necessary.
|
static FractionPrecision |
Precision.minMaxFraction(int minFractionPlaces,
int maxFractionPlaces)
Show numbers rounded if necessary to a certain number of fraction places (numerals after the
decimal separator); in addition, always show at least a certain number of places after the decimal
separator, padding with zeros if necessary.
|
Copyright © 2016 Unicode, Inc. and others.