Stay organized with collections
Save and categorize content based on your preferences.
CompactStyle
class CompactStyle
Style parameter for CompactDecimalFormat.
Summary
Enum values |
Longer version, like "1.
|
Short version, like "1.
|
Enum values
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CompactDecimalFormat.CompactStyle\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCompactStyle\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/CompactDecimalFormat.CompactStyle \"View this page in Java\") \n\n```\nclass CompactStyle\n```\n\n|---|---|---------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.CompactDecimalFormat.CompactStyle](#)\\\u003e ||\n| | ↳ | [android.icu.text.CompactDecimalFormat.CompactStyle](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [CompactDecimalFormat.CompactStyle.LONG](#ENUM_VALUE:LONG), [CompactDecimalFormat.CompactStyle.SHORT](#ENUM_VALUE:SHORT) |--------------------------------------------------------------|--------------------------| | [CompactDecimalFormat.CompactStyle.LONG](#ENUM_VALUE:LONG) | Longer version, like \"1. | | [CompactDecimalFormat.CompactStyle.SHORT](#ENUM_VALUE:SHORT) | Short version, like \"1. | |\n\nStyle parameter for CompactDecimalFormat.\n\nSummary\n-------\n\n| Enum values ||\n|----------------------------------------------------|---|\n| [LONG](#ENUM_VALUE:LONG) Longer version, like \"1. |\n| [SHORT](#ENUM_VALUE:SHORT) Short version, like \"1. |\n\nEnum values\n-----------\n\n### LONG\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LONG : CompactDecimalFormat.CompactStyle\n```\n\nLonger version, like \"1.2 trillion\", if available. May return same result as SHORT if not. \n\n### SHORT\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val SHORT : CompactDecimalFormat.CompactStyle\n```\n\nShort version, like \"1.2T\""]]