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 Scale |
Scale.byBigDecimal(BigDecimal multiplicand)
Multiply numbers by an arbitrary value before formatting.
|
static Scale |
Scale.byDouble(double multiplicand)
Multiply numbers by an arbitrary value before formatting.
|
static Scale |
Scale.byDoubleAndPowerOfTen(double multiplicand,
int power)
Multiply a number by both a power of ten and by an arbitrary double value before formatting.
|
static Scale |
Scale.none()
Do not change the value of numbers when formatting or parsing.
|
static Scale |
Scale.powerOfTen(int power)
Multiply numbers by 100 before formatting.
|
Scale |
Scale.withMathContext(MathContext mc)
Deprecated.
ICU 62 This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
T |
NumberFormatterSettings.scale(Scale scale)
Sets a scale (multiplier) to be used to scale the number by an arbitrary amount before formatting.
|
Copyright © 2016 Unicode, Inc. and others.