Lines Matching defs:decimal

41  * decimal numbers. It has a variety of features designed to make it possible to parse and
178 * <td>Decimal separator or monetary decimal separator
224 * If present in a pattern, the monetary decimal separator
225 * is used instead of the decimal separator.
252 * separators, decimal separators, etc. may be set to arbitrary values, and they will
257 * decimal separator and thousands separator should be distinct characters, or parsing
312 * <li>Two grouping intervals are recognized: That between the decimal point and the first
328 * <p><code>DecimalFormat</code> parses all Unicode characters that represent decimal
349 * <code>DecimalFormat</code> internally limits of maximum decimal digits to be 1000. Thus,
350 * an input string resulting more than 1000 digits in plain decimal representation (non-exponent)
378 * after the decimal, where <em>j</em> is less than the maximum fraction digits. For
497 * Trailing zero digits to the right of the decimal separator are suppressed after the
501 * <li>If a pattern uses significant digits, it may not contain a decimal separator, nor
720 * <p>If you want to completely customize a decimal format, using your own
729 * @param style the decimal formatting style, it is one of the following values:
897 // previous fix in {@link #resetActualRounding} for fixed decimal numbers.
1325 // 3 currency sign directly, or by instantiate a decimal formatter using
1333 // style is only valid when decimal formatter is constructed through
1361 // between the decimal and the first non-zero digit, for // a value < 0.1 (e.g.,
1404 char decimal = currencySignCount == CURRENCY_SIGN_COUNT_ZERO ?
1483 // zero to the left of the decimal point as one signficant digit. Ordinarily we
1504 // Output the decimal separator if we always do so.
1509 result.append(decimal);
1513 // [Spark/CDL] Add attribute for decimal separator
1547 // decimal but before any significant digits. These are only output if
1605 char decimal = currencySignCount == CURRENCY_SIGN_COUNT_ZERO ?
1673 // digits, up to the maximum number of digits. We place the decimal point
1700 result.append(decimal);
1701 // [Spark/CDL] Add attribute for decimal separator
1703 // Length of decimal separator is 1.
2303 // equivalent grouping and decimal support
2308 // allow control of requiring a matching decimal point when parsing
2375 // process digits or Inf, find decimal position
2382 // We now have a string of digits, possibly with grouping symbols, and decimal
2385 // location of the decimal point, put only significant digits into the
2390 char decimal = (currencySignCount == CURRENCY_SIGN_COUNT_ZERO) ?
2411 getEquivalentDecimals(decimal, strictParse);
2470 // If we have seen the decimal, but no significant digits yet,
2497 } else if (ch == decimal) {
2505 // If we're only parsing integers, or if we ALREADY saw the decimal,
2541 // Once we see a decimal separator character, we only accept that
2542 // decimal separator character from then on.
2543 decimal = (char) ch;
2608 if (exponentDigits.count > 10 /* maximum decimal digits for int */) {
2634 if(this.formatPattern.indexOf(decimal) != -1) {
2644 // If there was no decimal point we have an integer
2742 private UnicodeSet getEquivalentDecimals(char decimal, boolean strictParse) {
2745 if (strictDotEquivalents.contains(decimal)) {
2747 } else if (strictCommaEquivalents.contains(decimal)) {
2751 if (dotEquivalents.contains(decimal)) {
2753 } else if (commaEquivalents.contains(decimal)) {
3124 * Returns a copy of the decimal format symbols used by this format.
3140 * Sets the decimal format symbols used by this format. The format uses a copy of the
3770 * Returns the behavior of the decimal separator with integers. (The decimal
3781 * When decimal match is not required, the input does not have to
3782 * contain a decimal mark when there is a decimal mark specified in the
3784 * @param value true if input must contain a match to decimal mark in pattern
3794 * {@icu} Returns whether the input to parsing must contain a decimal mark if there
3795 * is a decimal mark in the pattern.
3796 * @return true if input must contain a match to decimal mark in pattern
3806 * Sets the behavior of the decimal separator with integers. (The decimal separator
3810 * decimal point, e.g., if true, 3456.00 -> "3,456." if false, 3456.00 -> "3456" This
3811 * is independent of parsing. If you want parsing to stop at the decimal point, use
3825 * return null if the decimal format is not a plural type currency decimal
3826 * format. Plural type currency decimal format means either the pattern in the decimal
3827 * format contains 3 currency signs, or the decimal format is initialized with
4384 int roundingDecimalPos = 0; // Pos of decimal in roundingDigits
4661 // Process the digits, decimal, and grouping characters. We record
4666 // first two blocks of characters), as is the position of the decimal
4668 // decimal point, then there should be no right digits.
4730 patternError("Grouping separator after decimal", pattern);
4736 patternError("Multiple decimal separators", pattern);
4937 // Do syntax checking on the digits, decimal points, and quotes.
4980 // The effectiveDecimalPos is the position the decimal is at or would be
4981 // at if there is no decimal. Note that if decimalPos<0, then
5221 // locale, and adjust the decimal digits and rounding for the
5575 * If true, forces the decimal separator to always appear in a formatted number, even
5585 * symbols used to format numbers, e.g. the grouping separator, decimal separator, and
5873 * the decimal separator is replaced with the monetary decimal separator.
5918 // style is only valid when decimal formatter is constructed by