Example #1
0
 public String toString(Locale locale) {
   String symbol = currency.getSymbol(locale);
   if (!"$".equals(symbol)) {
     symbol = symbol + " ";
   }
   return symbol
       + NumberFormatter.commas(amount.doubleValue(), currency.getDefaultFractionDigits());
 }
Example #2
0
 public String toNumericString() {
   return NumberFormatter.commas(amount.doubleValue(), currency.getDefaultFractionDigits());
 }
Example #3
0
 @Override
 public String toString() {
   return getRealSymbol(currency)
       + NumberFormatter.commas(amount.doubleValue(), currency.getDefaultFractionDigits());
 }