@Test public void whenValueTypeIsBigDecimal_thenConvertsSuccessfully() throws Exception { assertEquals("When the precision 4 and locale Japan", "1.2345", NumberUtil.toString(Locale.JAPAN, new BigDecimal("1.2345"), 4)); }
public static <T extends Number> String toString(T value, int precision) { return toString(Locale.getDefault(), value, precision); }
NumberUtil { public static <T extends Number> String toString(T value, int precision) { return toString(Locale.getDefault(), value, precision); } }
NumberUtil { public static <T extends Number> String toString(T value, int precision) { return toString(Locale.getDefault(), value, precision); } private  NumberUtil(); }
NumberUtil { public static <T extends Number> String toString(T value, int precision) { return toString(Locale.getDefault(), value, precision); } private  NumberUtil(); static String toString(T value, int precision); static String toString(Locale locale, T value, int precision); }
NumberUtil { public static <T extends Number> String toString(T value, int precision) { return toString(Locale.getDefault(), value, precision); } private  NumberUtil(); static String toString(T value, int precision); static String toString(Locale locale, T value, int precision);  }