DecimalFormat

Class of android.icu.text · DecimalFormat.java · Android's reference

public class DecimalFormat extends NumberFormat

DecimalFormat ← NumberFormat

Decimal number formats, on java.text's.

Constructors

public DecimalFormat() source
public DecimalFormat(String pattern) source
public DecimalFormat(String pattern, DecimalFormatSymbols symbols) source

Methods

public String format(double number) source
public String format(long number) source
public String format(java.math.BigDecimal number) source
public int getGroupingSize() source
public void setGroupingSize(int newValue) source
public Number parse(String text) throws java.text.ParseException source
public void setMaximumFractionDigits(int newValue) source
public void setMinimumFractionDigits(int newValue) source
public void setGroupingUsed(boolean newValue) source
public void setMaximumSignificantDigits(int max) empty body source
public void setMinimumSignificantDigits(int min) empty body source
public void setSignificantDigitsUsed(boolean useSignificantDigits) empty body source
public void setRoundingMode(int roundingMode) source
public void setDecimalFormatSymbols(DecimalFormatSymbols newSymbols) source
public DecimalFormatSymbols getDecimalFormatSymbols() source
public void applyPattern(String pattern) source
public String toPattern() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.