public static CompactDecimalFormat getInstance ( Locale locale , CompactStyle style ) { return new CompactDecimalFormat ( ULocale . forLocale ( locale ) , style ) ; }
Create a CompactDecimalFormat appropriate for a locale . The result may be affected by the number system in the locale such as ar - u - nu - latn .