### Question:
NumberFormatUtils { public static String formatCurrency(Number number) { return new DecimalFormat("#0.00").format(number); }  static String formatCurrency(Number number); static Double toPercent(Number number); static Double toPercent(Number number, int scale);  }### Answer:
@Test public void test() { Assertions.assertEquals("0.36", NumberFormatUtils.formatCurrency(0.361f)); Assertions.assertEquals("0.37", NumberFormatUtils.formatCurrency(0.367f)); Assertions.assertEquals("1234.57", NumberFormatUtils.formatCurrency(1234.567f)); Assertions.assertEquals("123.00", NumberFormatUtils.formatCurrency(123.00f)); Assertions.assertEquals("99999999.99", NumberFormatUtils.formatCurrency(99999999.99)); }