Home
last modified time | relevance | path

Searched refs:setRoundingMode (Results 1 – 25 of 68) sorted by relevance

123

/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java208 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() method in NumberFormatICU
210 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_CEILING); in setRoundingMode()
212 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_DOWN); in setRoundingMode()
214 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_FLOOR); in setRoundingMode()
216 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_DOWN); in setRoundingMode()
218 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN); in setRoundingMode()
220 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
222 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_UNNECESSARY); in setRoundingMode()
224 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_UP); in setRoundingMode()
DDecimalFormatICU.java366 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() method in DecimalFormatICU
368 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_CEILING); in setRoundingMode()
370 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_DOWN); in setRoundingMode()
372 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_FLOOR); in setRoundingMode()
374 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_DOWN); in setRoundingMode()
376 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN); in setRoundingMode()
378 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
380 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_UNNECESSARY); in setRoundingMode()
382 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_UP); in setRoundingMode()
/external/icu/icu4c/source/test/intltest/
Ddcfmtest.cpp421 fmtr.setRoundingMode(DecimalFormat::kRoundCeiling); in execFormatTest()
423 fmtr.setRoundingMode(DecimalFormat::kRoundFloor); in execFormatTest()
425 fmtr.setRoundingMode(DecimalFormat::kRoundDown); in execFormatTest()
427 fmtr.setRoundingMode(DecimalFormat::kRoundUp); in execFormatTest()
429 fmtr.setRoundingMode(DecimalFormat::kRoundHalfEven); in execFormatTest()
431 fmtr.setRoundingMode(DecimalFormat::kRoundHalfDown); in execFormatTest()
433 fmtr.setRoundingMode(DecimalFormat::kRoundHalfUp); in execFormatTest()
437 fmtr.setRoundingMode(DecimalFormat::kRoundUnnecessary); in execFormatTest()
439 fmtr.setRoundingMode(DecimalFormat::kRoundFloor); in execFormatTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java68 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
78 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
91 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
347 pat.setRoundingMode(BigDecimal.ROUND_UP); in testJB6354()
DRbnfTest.java1700 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
1717 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
1733 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
1809 rbnf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testRoundingUnrealNumbers()
DNumberFormatTest.java181 format.setRoundingMode(roundingModes[i]); in verifyRounding()
202 nff.setRoundingMode(((Integer) item[0]).intValue()); in Test10419RoundingWith0FractionDigits()
2480 nf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestRounding()
2488 nf.setRoundingMode(mode); in TestRounding()
2558 f.setRoundingMode(BigDecimal.ROUND_DOWN); in TestBigDecimalRounding()
2562 f.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestBigDecimalRounding()
3612 tgrm.setRoundingMode(0); in TestRoundingMode()
3715 df.setRoundingMode(MathContext.ROUND_HALF_UP); in TestNegZeroRounding()
3953 fmt.setRoundingMode(roundingMode); in TestRoundingBehavior()
4741 df.setRoundingMode(BigDecimal.ROUND_UNNECESSARY);
[all …]
DNumberFormatDataDrivenTest.java243 fmt.setRoundingMode(tuple.roundingMode);
523 properties.setRoundingMode(RoundingMode.valueOf(tuple.roundingMode)); in propertiesFromTuple()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java65 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
75 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
88 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
344 pat.setRoundingMode(BigDecimal.ROUND_UP); in testJB6354()
DRbnfTest.java1697 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
1714 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
1730 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
1806 rbnf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testRoundingUnrealNumbers()
DNumberFormatTest.java178 format.setRoundingMode(roundingModes[i]); in verifyRounding()
199 nff.setRoundingMode(((Integer) item[0]).intValue()); in Test10419RoundingWith0FractionDigits()
2477 nf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestRounding()
2485 nf.setRoundingMode(mode); in TestRounding()
2555 f.setRoundingMode(BigDecimal.ROUND_DOWN); in TestBigDecimalRounding()
2559 f.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestBigDecimalRounding()
3609 tgrm.setRoundingMode(0); in TestRoundingMode()
3712 df.setRoundingMode(MathContext.ROUND_HALF_UP); in TestNegZeroRounding()
3950 fmt.setRoundingMode(roundingMode); in TestRoundingBehavior()
4738 df.setRoundingMode(BigDecimal.ROUND_UNNECESSARY);
[all …]
DNumberFormatDataDrivenTest.java240 fmt.setRoundingMode(tuple.roundingMode);
520 properties.setRoundingMode(RoundingMode.valueOf(tuple.roundingMode)); in propertiesFromTuple()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java252 public void setRoundingMode(int roundingMode) { in setRoundingMode() method in NumberFormatJDK
283 fJdkNfmt.setRoundingMode(mode); in setRoundingMode()
/external/llvm-project/clang/include/clang/Basic/
DLangOptions.h419 setRoundingMode(static_cast<RoundingMode>(LangOptions::FPR_ToNearest)); in FPOptions()
431 setRoundingMode(LO.getFPRoundingMode()); in FPOptions()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DBigReal.java206 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() method in BigReal
/external/icu/libicu/cts_headers/unicode/
Drbnf.h1004 virtual void setRoundingMode(ERoundingMode roundingMode);
Dnumfmt.h1055 virtual void setRoundingMode(ERoundingMode roundingMode);
Ddecimfmt.h1412 virtual void setRoundingMode(ERoundingMode roundingMode) U_OVERRIDE;
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h1004 virtual void setRoundingMode(ERoundingMode roundingMode);
Dnumfmt.h1055 virtual void setRoundingMode(ERoundingMode roundingMode);
Ddecimfmt.h1412 virtual void setRoundingMode(ERoundingMode roundingMode) U_OVERRIDE;
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat.java586 setRoundingMode(fieldGetter.get("roundingMode", 0)); in readObject()
1223 public synchronized void setRoundingMode(int roundingMode) { in setRoundingMode() method in DecimalFormat
1224 properties.setRoundingMode(RoundingMode.valueOf(roundingMode)); in setRoundingMode()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat.java599 setRoundingMode(fieldGetter.get("roundingMode", 0)); in readObject()
1292 public synchronized void setRoundingMode(int roundingMode) { in setRoundingMode() method in DecimalFormat
1293 properties.setRoundingMode(RoundingMode.valueOf(roundingMode)); in setRoundingMode()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberPropertyMapper.java320 exportedProperties.setRoundingMode(mathContext.getRoundingMode()); in oldToNew()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberPropertyMapper.java319 exportedProperties.setRoundingMode(mathContext.getRoundingMode()); in oldToNew()
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpField.java258 public void setRoundingMode(final RoundingMode mode) {

123