Class UnlocalizedNumberFormatter

    • Method Detail

      • locale

        public LocalizedNumberFormatter locale​(java.util.Locale locale)
        Associate the given locale with the number formatter. The locale is used for picking the appropriate symbols, formats, and other data for number display.

        To use the Java default locale, call Locale.getDefault():

         NumberFormatter.with(). ... .locale(Locale.getDefault())
         
        Parameters:
        locale - The locale to use when loading data for number formatting.
        Returns:
        The fluent chain