Package | Description |
---|---|
com.ibm.icu.number |
Library for localized number formatting introduced in ICU 60; for usage, see com.ibm.icu.number.NumberFormatter.
|
com.ibm.icu.text |
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
|
Modifier and Type | Method and Description |
---|---|
FormattedNumber |
LocalizedNumberFormatter.format(double input)
Format the given float or double to a string using the settings specified in the NumberFormatter
fluent setting chain.
|
FormattedNumber |
LocalizedNumberFormatter.format(long input)
Format the given byte, short, int, or long to a string using the settings specified in the
NumberFormatter fluent setting chain.
|
FormattedNumber |
LocalizedNumberFormatter.format(Measure input)
Format the given
Measure or CurrencyAmount to a string using the settings
specified in the NumberFormatter fluent setting chain. |
FormattedNumber |
LocalizedNumberFormatter.format(Number input)
Format the given
BigInteger , BigDecimal , or other Number to a string using
the settings specified in the NumberFormatter fluent setting chain. |
Modifier and Type | Method and Description |
---|---|
String |
PluralRules.select(FormattedNumber number)
Given a formatted number, returns the keyword of the first rule that
applies to the number.
|
Copyright © 2016 Unicode, Inc. and others.