Added in API level 24

CompactStyle


class CompactStyle
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.CompactDecimalFormat.CompactStyle>
   ↳ android.icu.text.CompactDecimalFormat.CompactStyle

Style parameter for CompactDecimalFormat.

Summary

Enum values

Longer version, like "1.

Short version, like "1.

Enum values

LONG

Added in API level 24
enum val LONG : CompactDecimalFormat.CompactStyle

Longer version, like "1.2 trillion", if available. May return same result as SHORT if not.

SHORT

Added in API level 24
enum val SHORT : CompactDecimalFormat.CompactStyle

Short version, like "1.2T"