public static String formatQuantity(Float quantity){
  if (quantity == null)   return "";
 else   return formatQuantity(quantity.doubleValue());
}

public static String formatQuantity ( Float quantity ) { if ( quantity == null ) return "" ; else return formatQuantity ( quantity . doubleValue ( ) ) ; }
formats a float representing a quantity into a string
