public class Scale extends Object
To create a Multiplier, use one of the factory methods.
NumberFormatter
Modifier and Type | Method and Description |
---|---|
void |
applyReciprocalTo(com.ibm.icu.impl.number.DecimalQuantity quantity)
Deprecated.
ICU 62 This API is ICU internal only.
|
void |
applyTo(com.ibm.icu.impl.number.DecimalQuantity quantity)
Deprecated.
ICU 62 This API is ICU internal only.
|
static Scale |
byBigDecimal(BigDecimal multiplicand)
Multiply numbers by an arbitrary value before formatting.
|
static Scale |
byDouble(double multiplicand)
Multiply numbers by an arbitrary value before formatting.
|
static 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 |
none()
Do not change the value of numbers when formatting or parsing.
|
static Scale |
powerOfTen(int power)
Multiply numbers by 100 before formatting.
|
Scale |
withMathContext(MathContext mc)
Deprecated.
ICU 62 This API is ICU internal only.
|
public static Scale none()
NumberFormatter
public static Scale powerOfTen(int power)
NumberFormatter.with().unit(NoUnit.PERCENT).multiplier(Multiplier.powerOfTen(2))
NumberFormatter
public static Scale byBigDecimal(BigDecimal multiplicand)
This method takes a BigDecimal; also see the version that takes a double.
NumberFormatter
public static Scale byDouble(double multiplicand)
This method takes a double; also see the version that takes a BigDecimal.
NumberFormatter
public static Scale byDoubleAndPowerOfTen(double multiplicand, int power)
NumberFormatter
@Deprecated public Scale withMathContext(MathContext mc)
@Deprecated public void applyTo(com.ibm.icu.impl.number.DecimalQuantity quantity)
@Deprecated public void applyReciprocalTo(com.ibm.icu.impl.number.DecimalQuantity quantity)
Copyright © 2016 Unicode, Inc. and others.