code: private static void decimal(CLDR.Locale locale, String[] numbers, DecimalFormatOptions opts) {
      for (String num : numbers) {
        BigDecimal n = new BigDecimal(num);
        StringBuilder buf = new StringBuilder("  ");
        NumberFormatter fmt = CLDR.get().getNumberFormatter(locale);
        fmt.formatDecimal(n, buf, opts);
        System.out.println(buf.toString());
      }
    }
docs: Format decimal numbers in this locale.