示例#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());
 }
示例#2
0
 public String toNumericString() {
   return NumberFormatter.commas(amount.doubleValue(), currency.getDefaultFractionDigits());
 }
示例#3
0
 @Override
 public String toString() {
   return getRealSymbol(currency)
       + NumberFormatter.commas(amount.doubleValue(), currency.getDefaultFractionDigits());
 }