@Test public void testFormatNumber() throws Exception { String decimalString = FormatUtils.formatNumber(new Double("1.234599")); String integerString = FormatUtils.formatNumber(1); assertThat(decimalString, equalTo("1.2346")); assertThat(integerString, equalTo("1.00")); }
public static String formatNumber(Number value) { return decimalFormatDefault.get().format(value); }
FormatUtils { public static String formatNumber(Number value) { return decimalFormatDefault.get().format(value); } }
FormatUtils { public static String formatNumber(Number value) { return decimalFormatDefault.get().format(value); } private  FormatUtils(); }
FormatUtils { public static String formatNumber(Number value) { return decimalFormatDefault.get().format(value); } private  FormatUtils(); static ZonedDateTime parseUTCTime(String value); static Number parseNumber(String value); static String formatNumber(Number value); static String formatNumberFiveCharLimit(Number value); static String formatMillisOrSeconds(Number value); static String generateDefaultValueMessage(String metric, Number value); }
FormatUtils { public static String formatNumber(Number value) { return decimalFormatDefault.get().format(value); } private  FormatUtils(); static ZonedDateTime parseUTCTime(String value); static Number parseNumber(String value); static String formatNumber(Number value); static String formatNumberFiveCharLimit(Number value); static String formatMillisOrSeconds(Number value); static String generateDefaultValueMessage(String metric, Number value);  }