Compact number formatting shows large numbers in a short, human-friendly form, such as 1K for one thousand or 3 million, the way social media counts and dashboards do. Java provides it through java.text.CompactNumberFormat, a subclass of NumberFormat. You normally obtain one with the factory method NumberFormat.getCompactNumberInstance(locale, style).
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 5 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.