Home
last modified time | relevance | path

Searched refs:digitList (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dnumfmtdatadriventest.cpp27 strToDigitList(const UnicodeString& str, DecimalQuantity& digitList, UErrorCode& status) { in strToDigitList() argument
29 return digitList; in strToDigitList()
32 digitList.setToDouble(uprv_getNaN()); in strToDigitList()
33 return digitList; in strToDigitList()
36 digitList.setToDouble(-1 * uprv_getInfinity()); in strToDigitList()
37 return digitList; in strToDigitList()
40 digitList.setToDouble(uprv_getInfinity()); in strToDigitList()
41 return digitList; in strToDigitList()
45 digitList.setToDecNumber({formatValue.data(), formatValue.length()}, status); in strToDigitList()
46 return digitList; in strToDigitList()
[all …]
Dnumberformat2test.cpp322 DigitList digitList; in TestDigitListInterval() local
324 digitList.set((int32_t)12345); in TestDigitListInterval()
325 verifyInterval(digitList.getSmallestInterval(result), 0, 5); in TestDigitListInterval()
328 digitList.set(1000.00); in TestDigitListInterval()
329 verifyInterval(digitList.getSmallestInterval(result), 0, 4); in TestDigitListInterval()
332 digitList.set(43.125); in TestDigitListInterval()
333 verifyInterval(digitList.getSmallestInterval(result), -3, 2); in TestDigitListInterval()
336 digitList.set(.0078125); in TestDigitListInterval()
337 verifyInterval(digitList.getSmallestInterval(result), -7, 0); in TestDigitListInterval()
340 digitList.set(1000.00); in TestDigitListInterval()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat_ICU58_Android.java943 synchronized (digitList) { in format()
944 digitList.set(number, precision, !useExponentialNotation && in format()
1141 synchronized (digitList) { in format()
1142 digitList.set(number, precision(true)); in format()
1144 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1176 synchronized (digitList) { in format()
1177 digitList.set(number, precision(true)); in format()
1179 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1209 synchronized (digitList) { in format()
1210 digitList.set(number, precision(false), !useExponentialNotation && in format()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat_ICU58_Android.java940 synchronized (digitList) { in format()
941 digitList.set(number, precision, !useExponentialNotation && in format()
1137 synchronized (digitList) { in format()
1138 digitList.set(number, precision(true)); in format()
1140 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1170 synchronized (digitList) { in format()
1171 digitList.set(number, precision(true)); in format()
1173 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1201 synchronized (digitList) { in format()
1202 digitList.set(number, precision(false), !useExponentialNotation && in format()
[all …]
/external/icu/icu4c/source/i18n/
Drbnf.cpp1287 DecimalQuantity digitList; in format() local
1288 digitList.setToDouble(number); in format()
1289 digitList.roundToMagnitude( in format()
1293 number = digitList.toDouble(); in format()