public static String formatPrice(Double price){
  if (price == null)   return "";
  return formatPrice(price.doubleValue());
}

public static String formatPrice ( Double price ) { if ( price == null ) return "" ; return formatPrice ( price . doubleValue ( ) ) ; }
formats a double representing a price into a string
