DecimalFormatter { public static String to3Decimal(double value) { return format3dec.format(value); }  static String to0Decimal(double value); static String to0Decimal(double value, String unit); static String to1Decimal(double value); static String to1Decimal(double value, String unit); static String to2Decimal(double value); static String to2Decimal(double value, String unit); static String to3Decimal(double value); static String to3Decimal(double value, String unit); static String toPumpSupportedBolus(double value); static DecimalFormat pumpSupportedBolusFormat();  }
@Test public void to3DecimalTest() { Assert.assertEquals("1.333", DecimalFormatter.to3Decimal(1.3333d)); Assert.assertEquals("1.333U", DecimalFormatter.to3Decimal(1.3333d, "U")); }