@Deprecated public static String format(double amount){
  try {
    return format(BigDecimal.valueOf(amount));
  }
 catch (  NumberFormatException e) {
    logger.log(Level.WARNING,"Failed to display " + amount + ": "+ e.getMessage(),e);
    return "NaN";
  }
}

@ Deprecated public static String format ( double amount ) { try { return format ( BigDecimal . valueOf ( amount ) ) ; } catch ( NumberFormatException e ) { logger . log ( Level . WARNING , "Failed to display " + amount + ": " + e . getMessage ( ) , e ) ; return "NaN" ; } }
formats the amount of money like all other essentials functions . example : $ 100000 or $ 12345 . 67
