DecimalFormatter { public static String to0Decimal(double value) { return format0dec.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 to0DecimalTest() { Assert.assertEquals("1", DecimalFormatter.to0Decimal(1.33d)); Assert.assertEquals("1U", DecimalFormatter.to0Decimal(1.33d, "U")); }