Class CompactNotation
java.lang.Object
com.ibm.icu.number.Notation
com.ibm.icu.number.CompactNotation
A class that defines the scientific notation style to be used when formatting numbers in
NumberFormatter.
This class exposes no public functionality. To create a CompactNotation, use one of the
factory methods in Notation.
- See Also:
- Status:
- Stable ICU 60.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompactNotationDeprecated.This API is ICU internal only.Methods inherited from class Notation
compactLong, compactShort, engineering, scientific, simpleModifier and TypeMethodDescriptionstatic CompactNotationPrint the number using long-form compact notation.static CompactNotationPrint the number using short-form compact notation.static ScientificNotationPrint the number using engineering notation, a variant of scientific notation in which the exponent must be divisible by 3.static ScientificNotationPrint the number using scientific notation (also known as scientific form, standard index form, or standard form in the UK).static SimpleNotationsimple()Print the number using simple notation without any scaling by powers of ten.
-
Method Details
-
forCustomData
@Deprecated public static CompactNotation forCustomData(Map<String, Map<String, String>> compactCustomData) Deprecated.This API is ICU internal only.Create a compact notation with custom data.- See Also:
- Status:
- Internal. This API is ICU internal only.
-