/**@class java.text.DecimalFormat @extends java.text.NumberFormat <code>DecimalFormat</code> is a concrete subclass of <code>NumberFormat</code> that formats decimal numbers. It has a variety of features designed to make it possible to parse and format numbers in any locale, including support for Western, Arabic, and Indic digits. It also supports different kinds of numbers, including integers (123), fixed-point numbers (123.4), scientific notation (1.23E4), percentages (12%), and currency amounts ($123). All of these can be localized. <p>To obtain a <code>NumberFormat</code> for a specific locale, including the default locale, call one of <code>NumberFormat</code>'s factory methods, such as <code>getInstance()</code>. In general, do not call the <code>DecimalFormat</code> constructors directly, since the <code>NumberFormat</code> factory methods may return subclasses other than <code>DecimalFormat</code>. If you need to customize the format object, do something like this: <blockquote><pre> NumberFormat f = NumberFormat.getInstance(loc); if (f instanceof DecimalFormat) { ((DecimalFormat) f).setDecimalSeparatorAlwaysShown(true); } </pre></blockquote> <p>A <code>DecimalFormat</code> comprises a <em>pattern</em> and a set of <em>symbols</em>. The pattern may be set directly using <code>applyPattern()</code>, or indirectly using the API methods. The symbols are stored in a <code>DecimalFormatSymbols</code> object. When using the <code>NumberFormat</code> factory methods, the pattern and symbols are read from localized <code>ResourceBundle</code>s. <h3>Patterns</h3> <code>DecimalFormat</code> patterns have the following syntax: <blockquote><pre> <i>Pattern:</i> <i>PositivePattern</i> <i>PositivePattern</i> ; <i>NegativePattern</i> <i>PositivePattern:</i> <i>Prefix<sub>opt</sub></i> <i>Number</i> <i>Suffix<sub>opt</sub></i> <i>NegativePattern:</i> <i>Prefix<sub>opt</sub></i> <i>Number</i> <i>Suffix<sub>opt</sub></i> <i>Prefix:</i> any Unicode characters except \uFFFE, \uFFFF, and special characters <i>Suffix:</i> any Unicode characters except \uFFFE, \uFFFF, and special characters <i>Number:</i> <i>Integer</i> <i>Exponent<sub>opt</sub></i> <i>Integer</i> . <i>Fraction</i> <i>Exponent<sub>opt</sub></i> <i>Integer:</i> <i>MinimumInteger</i> # # <i>Integer</i> # , <i>Integer</i> <i>MinimumInteger:</i> 0 0 <i>MinimumInteger</i> 0 , <i>MinimumInteger</i> <i>Fraction:</i> <i>MinimumFraction<sub>opt</sub></i> <i>OptionalFraction<sub>opt</sub></i> <i>MinimumFraction:</i> 0 <i>MinimumFraction<sub>opt</sub></i> <i>OptionalFraction:</i> # <i>OptionalFraction<sub>opt</sub></i> <i>Exponent:</i> E <i>MinimumExponent</i> <i>MinimumExponent:</i> 0 <i>MinimumExponent<sub>opt</sub></i> </pre></blockquote> <p>A <code>DecimalFormat</code> pattern contains a positive and negative subpattern, for example, <code>"#,##0.00;(#,##0.00)"</code>. Each subpattern has a prefix, numeric part, and suffix. The negative subpattern is optional; if absent, then the positive subpattern prefixed with the localized minus sign (<code>'-'</code> in most locales) is used as the negative subpattern. That is, <code>"0.00"</code> alone is equivalent to <code>"0.00;-0.00"</code>. If there is an explicit negative subpattern, it serves only to specify the negative prefix and suffix; the number of digits, minimal digits, and other characteristics are all the same as the positive pattern. That means that <code>"#,##0.0#;(#)"</code> produces precisely the same behavior as <code>"#,##0.0#;(#,##0.0#)"</code>. <p>The prefixes, suffixes, and various symbols used for infinity, digits, thousands separators, decimal separators, etc. may be set to arbitrary values, and they will appear properly during formatting. However, care must be taken that the symbols and strings do not conflict, or parsing will be unreliable. For example, either the positive and negative prefixes or the suffixes must be distinct for <code>DecimalFormat.parse()</code> to be able to distinguish positive from negative values. (If they are identical, then <code>DecimalFormat</code> will behave as if no negative subpattern was specified.) Another example is that the decimal separator and thousands separator should be distinct characters, or parsing will be impossible. <p>The grouping separator is commonly used for thousands, but in some countries it separates ten-thousands. The grouping size is a constant number of digits between the grouping characters, such as 3 for 100,000,000 or 4 for 1,0000,0000. If you supply a pattern with multiple grouping characters, the interval between the last one and the end of the integer is the one that is used. So <code>"#,##,###,####"</code> == <code>"######,####"</code> == <code>"##,####,####"</code>. <h4>Special Pattern Characters</h4> <p>Many characters in a pattern are taken literally; they are matched during parsing and output unchanged during formatting. Special characters, on the other hand, stand for other characters, strings, or classes of characters. They must be quoted, unless noted otherwise, if they are to appear in the prefix or suffix as literals. <p>The characters listed here are used in non-localized patterns. Localized patterns use the corresponding characters taken from this formatter's <code>DecimalFormatSymbols</code> object instead, and these characters lose their special status. Two exceptions are the currency sign and quote, which are not localized. <blockquote> <table border=0 cellspacing=3 cellpadding=0 summary="Chart showing symbol, location, localized, and meaning."> <tr style="background-color: rgb(204, 204, 255);"> <th align=left>Symbol <th align=left>Location <th align=left>Localized? <th align=left>Meaning <tr valign=top> <td><code>0</code> <td>Number <td>Yes <td>Digit <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> <td><code>#</code> <td>Number <td>Yes <td>Digit, zero shows as absent <tr valign=top> <td><code>.</code> <td>Number <td>Yes <td>Decimal separator or monetary decimal separator <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> <td><code>-</code> <td>Number <td>Yes <td>Minus sign <tr valign=top> <td><code>,</code> <td>Number <td>Yes <td>Grouping separator <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> <td><code>E</code> <td>Number <td>Yes <td>Separates mantissa and exponent in scientific notation. <em>Need not be quoted in prefix or suffix.</em> <tr valign=top> <td><code>;</code> <td>Subpattern boundary <td>Yes <td>Separates positive and negative subpatterns <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> <td><code>%</code> <td>Prefix or suffix <td>Yes <td>Multiply by 100 and show as percentage <tr valign=top> <td><code>\u2030</code> <td>Prefix or suffix <td>Yes <td>Multiply by 1000 and show as per mille value <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> <td><code>¤</code> (<code>\u00A4</code>) <td>Prefix or suffix <td>No <td>Currency sign, replaced by currency symbol. If doubled, replaced by international currency symbol. If present in a pattern, the monetary decimal separator is used instead of the decimal separator. <tr valign=top> <td><code>'</code> <td>Prefix or suffix <td>No <td>Used to quote special characters in a prefix or suffix, for example, <code>"'#'#"</code> formats 123 to <code>"#123"</code>. To create a single quote itself, use two in a row: <code>"# o''clock"</code>. </table> </blockquote> <h4>Scientific Notation</h4> <p>Numbers in scientific notation are expressed as the product of a mantissa and a power of ten, for example, 1234 can be expressed as 1.234 x 10^3. The mantissa is often in the range 1.0 ≤ x {@literal <} 10.0, but it need not be. <code>DecimalFormat</code> can be instructed to format and parse scientific notation <em>only via a pattern</em>; there is currently no factory method that creates a scientific notation format. In a pattern, the exponent character immediately followed by one or more digit characters indicates scientific notation. Example: <code>"0.###E0"</code> formats the number 1234 as <code>"1.234E3"</code>. <ul> <li>The number of digit characters after the exponent character gives the minimum exponent digit count. There is no maximum. Negative exponents are formatted using the localized minus sign, <em>not</em> the prefix and suffix from the pattern. This allows patterns such as <code>"0.###E0 m/s"</code>. <li>The minimum and maximum number of integer digits are interpreted together: <ul> <li>If the maximum number of integer digits is greater than their minimum number and greater than 1, it forces the exponent to be a multiple of the maximum number of integer digits, and the minimum number of integer digits to be interpreted as 1. The most common use of this is to generate <em>engineering notation</em>, in which the exponent is a multiple of three, e.g., <code>"##0.#####E0"</code>. Using this pattern, the number 12345 formats to <code>"12.345E3"</code>, and 123456 formats to <code>"123.456E3"</code>. <li>Otherwise, the minimum number of integer digits is achieved by adjusting the exponent. Example: 0.00123 formatted with <code>"00.###E0"</code> yields <code>"12.3E-4"</code>. </ul> <li>The number of significant digits in the mantissa is the sum of the <em>minimum integer</em> and <em>maximum fraction</em> digits, and is unaffected by the maximum integer digits. For example, 12345 formatted with <code>"##0.##E0"</code> is <code>"12.3E3"</code>. To show all digits, set the significant digits count to zero. The number of significant digits does not affect parsing. <li>Exponential patterns may not contain grouping separators. </ul> <h4>Rounding</h4> <code>DecimalFormat</code> provides rounding modes defined in {@link java.math.RoundingMode} for formatting. By default, it uses {@link java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}. <h4>Digits</h4> For formatting, <code>DecimalFormat</code> uses the ten consecutive characters starting with the localized zero digit defined in the <code>DecimalFormatSymbols</code> object as digits. For parsing, these digits as well as all Unicode decimal digits, as defined by {@link Character#digit Character.digit}, are recognized. <h4>Special Values</h4> <p><code>NaN</code> is formatted as a string, which typically has a single character <code>\uFFFD</code>. This string is determined by the <code>DecimalFormatSymbols</code> object. This is the only value for which the prefixes and suffixes are not used. <p>Infinity is formatted as a string, which typically has a single character <code>\u221E</code>, with the positive or negative prefixes and suffixes applied. The infinity string is determined by the <code>DecimalFormatSymbols</code> object. <p>Negative zero (<code>"-0"</code>) parses to <ul> <li><code>BigDecimal(0)</code> if <code>isParseBigDecimal()</code> is true, <li><code>Long(0)</code> if <code>isParseBigDecimal()</code> is false and <code>isParseIntegerOnly()</code> is true, <li><code>Double(-0.0)</code> if both <code>isParseBigDecimal()</code> and <code>isParseIntegerOnly()</code> are false. </ul> <h4><a name="synchronization">Synchronization</a></h4> <p> Decimal formats are generally not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally. <h4>Example</h4> <blockquote><pre>{@code <strong>// Print out a number using the localized number, integer, currency, // and percent format for each locale</strong> Locale[] locales = NumberFormat.getAvailableLocales(); double myNumber = -1234.56; NumberFormat form; for (int j = 0; j < 4; ++j) { System.out.println("FORMAT"); for (int i = 0; i < locales.length; ++i) { if (locales[i].getCountry().length() == 0) { continue; // Skip language-only locales } System.out.print(locales[i].getDisplayName()); switch (j) { case 0: form = NumberFormat.getInstance(locales[i]); break; case 1: form = NumberFormat.getIntegerInstance(locales[i]); break; case 2: form = NumberFormat.getCurrencyInstance(locales[i]); break; default: form = NumberFormat.getPercentInstance(locales[i]); break; } if (form instanceof DecimalFormat) { System.out.print(": " + ((DecimalFormat) form).toPattern()); } System.out.print(" -> " + form.format(myNumber)); try { System.out.println(" -> " + form.parse(form.format(myNumber))); } catch (ParseException e) {} } } }</pre></blockquote> @see <a href="https://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html">Java Tutorial</a> @see NumberFormat @see DecimalFormatSymbols @see ParsePosition @author Mark Davis @author Alan Liu */ var DecimalFormat = { /**Formats a number and appends the resulting text to the given string buffer. The number can be of any subclass of {@link java.lang.Number}. <p> This implementation uses the maximum precision permitted. @param {Object {Object}} number the number to format @param {Object {StringBuffer}} toAppendTo the <code>StringBuffer</code> to which the formatted text is to be appended @param {Object {FieldPosition}} pos On input: an alignment field, if desired. On output: the offsets of the alignment field. @return {Object {java.lang.StringBuffer}} the value passed in as <code>toAppendTo</code> @exception IllegalArgumentException if <code>number</code> is null or not an instance of <code>Number</code>. @exception NullPointerException if <code>toAppendTo</code> or <code>pos</code> is null @exception ArithmeticException if rounding is needed with rounding mode being set to RoundingMode.UNNECESSARY @see java.text.FieldPosition */ format : function( ) {}, /**Formats a double to produce a string. @param {Number} number The double to format @param {Object {StringBuffer}} result where the text is to be appended @param {Object {FieldPosition}} fieldPosition On input: an alignment field, if desired. On output: the offsets of the alignment field. @exception ArithmeticException if rounding is needed with rounding mode being set to RoundingMode.UNNECESSARY @return {Object {java.lang.StringBuffer}} The formatted number string @see java.text.FieldPosition */ format : function( ) {}, /**Format a long to produce a string. @param {Number} number The long to format @param {Object {StringBuffer}} result where the text is to be appended @param {Object {FieldPosition}} fieldPosition On input: an alignment field, if desired. On output: the offsets of the alignment field. @exception ArithmeticException if rounding is needed with rounding mode being set to RoundingMode.UNNECESSARY @return {Object {java.lang.StringBuffer}} The formatted number string @see java.text.FieldPosition */ format : function( ) {}, /**Formats an Object producing an <code>AttributedCharacterIterator</code>. You can use the returned <code>AttributedCharacterIterator</code> to build the resulting String, as well as to determine information about the resulting String. <p> Each attribute key of the AttributedCharacterIterator will be of type <code>NumberFormat.Field</code>, with the attribute value being the same as the attribute key. @param {Object {Object}} obj The object to format @exception IllegalArgumentException when the Format cannot format the given object. @exception ArithmeticException if rounding is needed with rounding mode being set to RoundingMode.UNNECESSARY @param obj The object to format @return {Object {java.text.AttributedCharacterIterator}} AttributedCharacterIterator describing the formatted value. @since 1.4 */ formatToCharacterIterator : function( ) {}, /**Parses text from a string to produce a <code>Number</code>. <p> The method attempts to parse text starting at the index given by <code>pos</code>. If parsing succeeds, then the index of <code>pos</code> is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed number is returned. The updated <code>pos</code> can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of <code>pos</code> is not changed, the error index of <code>pos</code> is set to the index of the character where the error occurred, and null is returned. <p> The subclass returned depends on the value of {@link #isParseBigDecimal} as well as on the string being parsed. <ul> <li>If <code>isParseBigDecimal()</code> is false (the default), most integer values are returned as <code>Long</code> objects, no matter how they are written: <code>"17"</code> and <code>"17.000"</code> both parse to <code>Long(17)</code>. Values that cannot fit into a <code>Long</code> are returned as <code>Double</code>s. This includes values with a fractional part, infinite values, <code>NaN</code>, and the value -0.0. <code>DecimalFormat</code> does <em>not</em> decide whether to return a <code>Double</code> or a <code>Long</code> based on the presence of a decimal separator in the source string. Doing so would prevent integers that overflow the mantissa of a double, such as <code>"-9,223,372,036,854,775,808.00"</code>, from being parsed accurately. <p> Callers may use the <code>Number</code> methods <code>doubleValue</code>, <code>longValue</code>, etc., to obtain the type they want. <li>If <code>isParseBigDecimal()</code> is true, values are returned as <code>BigDecimal</code> objects. The values are the ones constructed by {@link java.math.BigDecimal#BigDecimal(String)} for corresponding strings in locale-independent format. The special cases negative and positive infinity and NaN are returned as <code>Double</code> instances holding the values of the corresponding <code>Double</code> constants. </ul> <p> <code>DecimalFormat</code> parses all Unicode characters that represent decimal digits, as defined by <code>Character.digit()</code>. In addition, <code>DecimalFormat</code> also recognizes as digits the ten consecutive characters starting with the localized zero digit defined in the <code>DecimalFormatSymbols</code> object. @param {String} text the string to be parsed @param {Object {ParsePosition}} pos A <code>ParsePosition</code> object with index and error index information as described above. @return {Object {java.lang.Number}} the parsed value, or <code>null</code> if the parse fails @exception NullPointerException if <code>text</code> or <code>pos</code> is null. */ parse : function( ) {}, /**Returns a copy of the decimal format symbols, which is generally not changed by the programmer or user. @return {Object {java.text.DecimalFormatSymbols}} a copy of the desired DecimalFormatSymbols @see java.text.DecimalFormatSymbols */ getDecimalFormatSymbols : function( ) {}, /**Sets the decimal format symbols, which is generally not changed by the programmer or user. @param {Object {DecimalFormatSymbols}} newSymbols desired DecimalFormatSymbols @see java.text.DecimalFormatSymbols */ setDecimalFormatSymbols : function( ) {}, /**Get the positive prefix. <P>Examples: +123, $123, sFr123 @return {String} the positive prefix */ getPositivePrefix : function( ) {}, /**Set the positive prefix. <P>Examples: +123, $123, sFr123 @param {String} newValue the new positive prefix */ setPositivePrefix : function( ) {}, /**Get the negative prefix. <P>Examples: -123, ($123) (with negative suffix), sFr-123 @return {String} the negative prefix */ getNegativePrefix : function( ) {}, /**Set the negative prefix. <P>Examples: -123, ($123) (with negative suffix), sFr-123 @param {String} newValue the new negative prefix */ setNegativePrefix : function( ) {}, /**Get the positive suffix. <P>Example: 123% @return {String} the positive suffix */ getPositiveSuffix : function( ) {}, /**Set the positive suffix. <P>Example: 123% @param {String} newValue the new positive suffix */ setPositiveSuffix : function( ) {}, /**Get the negative suffix. <P>Examples: -123%, ($123) (with positive suffixes) @return {String} the negative suffix */ getNegativeSuffix : function( ) {}, /**Set the negative suffix. <P>Examples: 123% @param {String} newValue the new negative suffix */ setNegativeSuffix : function( ) {}, /**Gets the multiplier for use in percent, per mille, and similar formats. @return {Number} the multiplier @see #setMultiplier(int) */ getMultiplier : function( ) {}, /**Sets the multiplier for use in percent, per mille, and similar formats. For a percent format, set the multiplier to 100 and the suffixes to have '%' (for Arabic, use the Arabic percent sign). For a per mille format, set the multiplier to 1000 and the suffixes to have '\u2030'. <P>Example: with multiplier 100, 1.23 is formatted as "123", and "123" is parsed into 1.23. @param {Number} newValue the new multiplier @see #getMultiplier */ setMultiplier : function( ) {}, /**{@inheritDoc} */ setGroupingUsed : function( ) {}, /**{@inheritDoc} */ isGroupingUsed : function( ) {}, /**Return the grouping size. Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3. @return {Number} the grouping size @see #setGroupingSize @see java.text.NumberFormat#isGroupingUsed @see java.text.DecimalFormatSymbols#getGroupingSeparator */ getGroupingSize : function( ) {}, /**Set the grouping size. Grouping size is the number of digits between grouping separators in the integer portion of a number. For example, in the number "123,456.78", the grouping size is 3. <br> The value passed in is converted to a byte, which may lose information. @param {Number} newValue the new grouping size @see #getGroupingSize @see java.text.NumberFormat#setGroupingUsed @see java.text.DecimalFormatSymbols#setGroupingSeparator */ setGroupingSize : function( ) {}, /**Allows you to get the behavior of the decimal separator with integers. (The decimal separator will always appear with decimals.) <P>Example: Decimal ON: 12345 → 12345.; OFF: 12345 → 12345 @return {Boolean} {@code true} if the decimal separator is always shown; {@code false} otherwise */ isDecimalSeparatorAlwaysShown : function( ) {}, /**Allows you to set the behavior of the decimal separator with integers. (The decimal separator will always appear with decimals.) <P>Example: Decimal ON: 12345 → 12345.; OFF: 12345 → 12345 @param {Boolean} newValue {@code true} if the decimal separator is always shown; {@code false} otherwise */ setDecimalSeparatorAlwaysShown : function( ) {}, /**Returns whether the {@link #parse(java.lang.String, java.text.ParsePosition)} method returns <code>BigDecimal</code>. The default value is false. @return {Boolean} {@code true} if the parse method returns BigDecimal; {@code false} otherwise @see #setParseBigDecimal @since 1.5 */ isParseBigDecimal : function( ) {}, /**Sets whether the {@link #parse(java.lang.String, java.text.ParsePosition)} method returns <code>BigDecimal</code>. @param {Boolean} newValue {@code true} if the parse method returns BigDecimal; {@code false} otherwise @see #isParseBigDecimal @since 1.5 */ setParseBigDecimal : function( ) {}, /**{@inheritDoc} */ isParseIntegerOnly : function( ) {}, /**{@inheritDoc} */ setParseIntegerOnly : function( ) {}, /**Standard override; no change in semantics. */ clone : function( ) {}, /**Overrides equals */ equals : function( ) {}, /**Overrides hashCode */ hashCode : function( ) {}, /**Synthesizes a pattern string that represents the current state of this Format object. @return {String} a pattern string @see #applyPattern */ toPattern : function( ) {}, /**Synthesizes a localized pattern string that represents the current state of this Format object. @return {String} a localized pattern string @see #applyPattern */ toLocalizedPattern : function( ) {}, /**Apply the given pattern to this Format object. A pattern is a short-hand specification for the various formatting properties. These properties can also be changed individually through the various setter methods. <p> There is no limit to integer digits set by this routine, since that is the typical end-user desire; use setMaximumInteger if you want to set a real value. For negative numbers, use a second pattern, separated by a semicolon <P>Example <code>"#,#00.0#"</code> → 1,234.56 <P>This means a minimum of 2 integer digits, 1 fraction digit, and a maximum of 2 fraction digits. <p>Example: <code>"#,#00.0#;(#,#00.0#)"</code> for negatives in parentheses. <p>In negative patterns, the minimum and maximum counts are ignored; these are presumed to be set in the positive pattern. @param {String} pattern a new pattern @exception NullPointerException if <code>pattern</code> is null @exception IllegalArgumentException if the given pattern is invalid. */ applyPattern : function( ) {}, /**Apply the given pattern to this Format object. The pattern is assumed to be in a localized notation. A pattern is a short-hand specification for the various formatting properties. These properties can also be changed individually through the various setter methods. <p> There is no limit to integer digits set by this routine, since that is the typical end-user desire; use setMaximumInteger if you want to set a real value. For negative numbers, use a second pattern, separated by a semicolon <P>Example <code>"#,#00.0#"</code> → 1,234.56 <P>This means a minimum of 2 integer digits, 1 fraction digit, and a maximum of 2 fraction digits. <p>Example: <code>"#,#00.0#;(#,#00.0#)"</code> for negatives in parentheses. <p>In negative patterns, the minimum and maximum counts are ignored; these are presumed to be set in the positive pattern. @param {String} pattern a new pattern @exception NullPointerException if <code>pattern</code> is null @exception IllegalArgumentException if the given pattern is invalid. */ applyLocalizedPattern : function( ) {}, /**Sets the maximum number of digits allowed in the integer portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of <code>newValue</code> and 309 is used. Negative input values are replaced with 0. @see NumberFormat#setMaximumIntegerDigits */ setMaximumIntegerDigits : function( ) {}, /**Sets the minimum number of digits allowed in the integer portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of <code>newValue</code> and 309 is used. Negative input values are replaced with 0. @see NumberFormat#setMinimumIntegerDigits */ setMinimumIntegerDigits : function( ) {}, /**Sets the maximum number of digits allowed in the fraction portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of <code>newValue</code> and 340 is used. Negative input values are replaced with 0. @see NumberFormat#setMaximumFractionDigits */ setMaximumFractionDigits : function( ) {}, /**Sets the minimum number of digits allowed in the fraction portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of <code>newValue</code> and 340 is used. Negative input values are replaced with 0. @see NumberFormat#setMinimumFractionDigits */ setMinimumFractionDigits : function( ) {}, /**Gets the maximum number of digits allowed in the integer portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of the return value and 309 is used. @see #setMaximumIntegerDigits */ getMaximumIntegerDigits : function( ) {}, /**Gets the minimum number of digits allowed in the integer portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of the return value and 309 is used. @see #setMinimumIntegerDigits */ getMinimumIntegerDigits : function( ) {}, /**Gets the maximum number of digits allowed in the fraction portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of the return value and 340 is used. @see #setMaximumFractionDigits */ getMaximumFractionDigits : function( ) {}, /**Gets the minimum number of digits allowed in the fraction portion of a number. For formatting numbers other than <code>BigInteger</code> and <code>BigDecimal</code> objects, the lower of the return value and 340 is used. @see #setMinimumFractionDigits */ getMinimumFractionDigits : function( ) {}, /**Gets the currency used by this decimal format when formatting currency values. The currency is obtained by calling {@link java.text.DecimalFormatSymbols#getCurrency java.text.DecimalFormatSymbols.getCurrency} on this number format's symbols. @return {Object {java.util.Currency}} the currency used by this decimal format, or <code>null</code> @since 1.4 */ getCurrency : function( ) {}, /**Sets the currency used by this number format when formatting currency values. This does not update the minimum or maximum number of fraction digits used by the number format. The currency is set by calling {@link java.text.DecimalFormatSymbols#setCurrency java.text.DecimalFormatSymbols.setCurrency} on this number format's symbols. @param {Object {Currency}} currency the new currency to be used by this decimal format @exception NullPointerException if <code>currency</code> is null @since 1.4 */ setCurrency : function( ) {}, /**Gets the {@link java.math.RoundingMode} used in this DecimalFormat. @return {Object {java.math.RoundingMode}} The <code>RoundingMode</code> used for this DecimalFormat. @see #setRoundingMode(RoundingMode) @since 1.6 */ getRoundingMode : function( ) {}, /**Sets the {@link java.math.RoundingMode} used in this DecimalFormat. @param {Object {RoundingMode}} roundingMode The <code>RoundingMode</code> to be used @see #getRoundingMode() @exception NullPointerException if <code>roundingMode</code> is null. @since 1.6 */ setRoundingMode : function( ) {}, };