Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java197 if (tuple.maxFractionDigits != null) {
198 fmt.setMaximumFractionDigits(tuple.maxFractionDigits);
370 if (tuple.maxFractionDigits != null) {
371 fmt.setMaximumFractionDigits(tuple.maxFractionDigits);
477 if (tuple.maxFractionDigits != null) { in propertiesFromTuple()
478 properties.setMaximumFractionDigits(tuple.maxFractionDigits); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java88 public Integer maxFractionDigits = null; field in DataDrivenNumberFormatTestData
288 maxFractionDigits = Integer.valueOf(value); in setMaxFractionDigits()
DNumberFormatTest.java1176 …private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected)… in roundingTest() argument
1177 nf.setMaximumFractionDigits(maxFractionDigits); in roundingTest()
1179 logln(x + " formats with " + maxFractionDigits + " fractional digits to " + out); in roundingTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java200 if (tuple.maxFractionDigits != null) {
201 fmt.setMaximumFractionDigits(tuple.maxFractionDigits);
373 if (tuple.maxFractionDigits != null) {
374 fmt.setMaximumFractionDigits(tuple.maxFractionDigits);
480 if (tuple.maxFractionDigits != null) { in propertiesFromTuple()
481 properties.setMaximumFractionDigits(tuple.maxFractionDigits); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java91 public Integer maxFractionDigits = null; field in DataDrivenNumberFormatTestData
291 maxFractionDigits = Integer.valueOf(value); in setMaxFractionDigits()
DNumberFormatTest.java1179 …private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected)… in roundingTest() argument
1180 nf.setMaximumFractionDigits(maxFractionDigits); in roundingTest()
1182 logln(x + " formats with " + maxFractionDigits + " fractional digits to " + out); in roundingTest()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormat.java1138 return maximumIntegerDigits * 37 + maxFractionDigits; in hashCode()
1654 maximumFractionDigits = maxFractionDigits; in readObject()
1687 maxFractionDigits = (maximumFractionDigits > Byte.MAX_VALUE) ? Byte.MAX_VALUE : in writeObject()
1769 private byte maxFractionDigits = 3; // invariant, >= minFractionDigits field in NumberFormat
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberFormat.java1005 return maximumIntegerDigits * 37 + maxFractionDigits; in hashCode()
1502 maximumFractionDigits = maxFractionDigits; in readObject()
1535 maxFractionDigits = (maximumFractionDigits > Byte.MAX_VALUE) ? Byte.MAX_VALUE : in writeObject()
1617 private byte maxFractionDigits = 3; // invariant, >= minFractionDigits field in NumberFormat
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h97 int32_t maxFractionDigits; variable
Dnumfmtst.h411 void roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected);
Dnumberformattesttuple.cpp304 FIELD_INIT(maxFractionDigits, &gIntOps),
Dnumfmtdatadriventest.cpp81 fmt.setMaximumFractionDigits(tuple.maxFractionDigits); in adjustDecimalFormat()
Dnumfmtst.cpp1454 NumberFormatTest::roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* e… in roundingTest() argument
1456 nf.setMaximumFractionDigits(maxFractionDigits); in roundingTest()
1458 …logln((UnicodeString)"" + x + " formats with " + maxFractionDigits + " fractional digits to " + ou… in roundingTest()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt53 set maxFractionDigits 5
321 minFractionDigits maxFractionDigits output
341 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
407 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
1379 set maxFractionDigits 0
1466 maxFractionDigits format output breaks
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt53 set maxFractionDigits 5
321 minFractionDigits maxFractionDigits output
341 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
407 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
1379 set maxFractionDigits 0
1466 maxFractionDigits format output breaks
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt53 set maxFractionDigits 5
321 minFractionDigits maxFractionDigits output
341 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
407 minIntegerDigits maxIntegerDigits minFractionDigits maxFractionDigits output breaks
1379 set maxFractionDigits 0
1466 maxFractionDigits format output breaks
/external/icu/icu4c/source/test/cintltst/
Dcnmdptst.c573 static void roundingTest(UNumberFormat* nf, double x, int32_t maxFractionDigits, const char* expect… in roundingTest() argument
581 unum_setAttribute(nf, UNUM_MAX_FRACTION_DIGITS, maxFractionDigits); in roundingTest()