public static String formatQuantity(double quantity){
  return quantityDecimalFormat.format(quantity);
}

public static String formatQuantity ( double quantity ) { return quantityDecimalFormat . format ( quantity ) ; }
formats an double representing a quantity into a string
