@Test public void to2DecimalTest() { Assert.assertEquals("1.33", DecimalFormatter.to2Decimal(1.3333d)); Assert.assertEquals("1.33U", DecimalFormatter.to2Decimal(1.3333d, "U")); }
public static String to2Decimal(double value) { return format2dec.format(value); }
DecimalFormatter { public static String to2Decimal(double value) { return format2dec.format(value); } }
DecimalFormatter { public static String to2Decimal(double value) { return format2dec.format(value); }  }
DecimalFormatter { public static String to2Decimal(double value) { return format2dec.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(); }
DecimalFormatter { public static String to2Decimal(double value) { return format2dec.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();  }