Name

DecimalFormatSymbols

Synopsis

This class defines the various characters and strings, such as the decimal point, percent sign, and thousands separator, used by DecimalFormat when formatting numbers. You do not typically use this class directly unless you are formatting dates for an unsupported locale or in some highly customized way.

java.text.DecimalFormatSymbols

Figure 15-10. java.text.DecimalFormatSymbols

public final class DecimalFormatSymbols implements Cloneable, Serializable {
// Public Constructors
     public DecimalFormatSymbols( );  
     public DecimalFormatSymbols(java.util.Locale locale);  
// Public Instance Methods
                  1.4  public java.util.Currency getCurrency( );  
1.2  public String getCurrencySymbol( );    default:"$" 
     public char getDecimalSeparator( );                         default:.
     public char getDigit( );                                    default:#
     public char getGroupingSeparator( );                        default:,
     public String getInfinity( );                               default:"\u221E"
                  1.2  public String getInternationalCurrencySymbol( );   default:"USD"
     public char getMinusSign( );                                default:-
                  1.2  public char getMonetaryDecimalSeparator( );   default:.
     public String getNaN( );                                    default:"\uFFFD" 
     public char getPatternSeparator( );                         default:;
     public char getPercent( );                                  default:%
     public char getPerMill( );                                  default:\u2030
     public char getZeroDigit( );                                default:0
                  1.4  public void setCurrency(java.util.Currency currency);  
1.2  public void setCurrencySymbol(String currency);  
     public void setDecimalSeparator(char decimalSeparator ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.