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 | Description |
---|---|---|
static FractionRounder |
Rounder.fixedFraction(int minMaxFractionPlaces) |
Show numbers rounded if necessary to a certain number of fraction places (numerals after the decimal separator).
|
static FractionRounder |
Rounder.integer() |
Show numbers rounded if necessary to the nearest integer.
|
static FractionRounder |
Rounder.maxFraction(int maxFractionPlaces) |
Show numbers rounded if necessary to a certain number of fraction places (numerals after the decimal separator).
|
static FractionRounder |
Rounder.minFraction(int minFractionPlaces) |
Always show at least a certain number of fraction places after the decimal separator, padding with zeros if
necessary.
|
static FractionRounder |
Rounder.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.