Home
last modified time | relevance | path

Searched refs:maxFractionDigits (Results 1 – 16 of 16) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java349 if (tuple.maxFractionDigits != null) {
350 fmt.setMaximumFractionDigits(tuple.maxFractionDigits);
451 if (tuple.maxFractionDigits != null) { in propertiesFromTuple()
452 properties.setMaximumFractionDigits(tuple.maxFractionDigits); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java91 public Integer maxFractionDigits = null; field in DataDrivenNumberFormatTestData
289 maxFractionDigits = Integer.valueOf(value); in setMaxFractionDigits()
DNumberFormatTest.java1129 …private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected)… in roundingTest() argument
1130 nf.setMaximumFractionDigits(maxFractionDigits); in roundingTest()
1132 logln(x + " formats with " + maxFractionDigits + " fractional digits to " + out); in roundingTest()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java346 if (tuple.maxFractionDigits != null) {
347 fmt.setMaximumFractionDigits(tuple.maxFractionDigits);
448 if (tuple.maxFractionDigits != null) { in propertiesFromTuple()
449 properties.setMaximumFractionDigits(tuple.maxFractionDigits); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java88 public Integer maxFractionDigits = null; field in DataDrivenNumberFormatTestData
286 maxFractionDigits = Integer.valueOf(value); in setMaxFractionDigits()
DNumberFormatTest.java1126 …private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected)… in roundingTest() argument
1127 nf.setMaximumFractionDigits(maxFractionDigits); in roundingTest()
1129 logln(x + " formats with " + maxFractionDigits + " fractional digits to " + out); in roundingTest()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberFormat.java994 return maximumIntegerDigits * 37 + maxFractionDigits; in hashCode()
1491 maximumFractionDigits = maxFractionDigits; in readObject()
1524 maxFractionDigits = (maximumFractionDigits > Byte.MAX_VALUE) ? Byte.MAX_VALUE : in writeObject()
1606 private byte maxFractionDigits = 3; // invariant, >= minFractionDigits field in NumberFormat
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormat.java1069 return maximumIntegerDigits * 37 + maxFractionDigits; in hashCode()
1582 maximumFractionDigits = maxFractionDigits; in readObject()
1615 maxFractionDigits = (maximumFractionDigits > Byte.MAX_VALUE) ? Byte.MAX_VALUE : in writeObject()
1697 private byte maxFractionDigits = 3; // invariant, >= minFractionDigits field in NumberFormat
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h97 int32_t maxFractionDigits; variable
Dnumfmtst.h326 void roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected);
Dnumberformattesttuple.cpp304 FIELD_INIT(maxFractionDigits, &gIntOps),
Dnumfmtst.cpp150 fmt.setMaximumFractionDigits(tuple.maxFractionDigits); in adjustDecimalFormat()
1739 NumberFormatTest::roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* e… in roundingTest() argument
1741 nf.setMaximumFractionDigits(maxFractionDigits); in roundingTest()
1743 …logln((UnicodeString)"" + x + " formats with " + maxFractionDigits + " fractional digits to " + ou… in roundingTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt45 set maxFractionDigits 5
293 minFractionDigits maxFractionDigits output
313 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
370 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
1351 set maxFractionDigits 0
1435 maxFractionDigits format output breaks
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt45 set maxFractionDigits 5
293 minFractionDigits maxFractionDigits output
313 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
370 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
1351 set maxFractionDigits 0
1435 maxFractionDigits format output breaks
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt45 set maxFractionDigits 5
293 minFractionDigits maxFractionDigits output
313 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
370 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
1351 set maxFractionDigits 0
1435 maxFractionDigits format output breaks
/external/icu/icu4c/source/test/cintltst/
Dcnmdptst.c640 static void roundingTest(UNumberFormat* nf, double x, int32_t maxFractionDigits, const char* expect… in roundingTest() argument
648 unum_setAttribute(nf, UNUM_MAX_FRACTION_DIGITS, maxFractionDigits); in roundingTest()