Home
last modified time | relevance | path

Searched refs:ROUND_HALF_EVEN (Results 1 – 25 of 34) sorted by relevance

12

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DMathContext.java190 public static final int ROUND_HALF_EVEN=6; field in MathContext
311 …P,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP};
DBigDecimal.java297 public static final int ROUND_HALF_EVEN = com.ibm.icu.math.MathContext.ROUND_HALF_EVEN; field in BigDecimal
3691 } else if (mode == ROUND_HALF_EVEN) { // 0.5000 goes down if left digit even in round()
/external/icu/android_icu4j/src/main/java/android/icu/math/
DMathContext.java182 public static final int ROUND_HALF_EVEN=6; field in MathContext
300 …P,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP};
DBigDecimal.java291 public static final int ROUND_HALF_EVEN = android.icu.math.MathContext.ROUND_HALF_EVEN; field in BigDecimal
3618 } else if (mode == ROUND_HALF_EVEN) { // 0.5000 goes down if left digit even in round()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DMathContext.java190 public static final int ROUND_HALF_EVEN=6; field in MathContext
311 …P,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP};
DBigDecimal.java299 public static final int ROUND_HALF_EVEN = com.ibm.icu.math.MathContext.ROUND_HALF_EVEN; field in BigDecimal
3693 } else if (mode == ROUND_HALF_EVEN) { // 0.5000 goes down if left digit even in round()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java123 case com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN: in getRoundingMode()
216 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN); in setRoundingMode()
DDecimalFormatICU.java212 case com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN: in getRoundingMode()
374 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN); in setRoundingMode()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java160 icuMode = BigDecimal.ROUND_HALF_EVEN; in getRoundingMode()
265 case BigDecimal.ROUND_HALF_EVEN: in setRoundingMode()
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpField.java46 ROUND_HALF_EVEN, enumConstant
191 this.rMode = RoundingMode.ROUND_HALF_EVEN; in DfpField()
DDfpDec.java233 case ROUND_HALF_EVEN: in round()
DDfp.java917 return trunc(DfpField.RoundingMode.ROUND_HALF_EVEN); in rint()
1015 case ROUND_HALF_EVEN: in trunc()
1349 case ROUND_HALF_EVEN: in round()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimal.java940 …")).ok = android.icu.math.BigDecimal.ROUND_HALF_EVEN == (constantVal = android.icu.math.MathContex… in diagmutation()
1418 …text(2,android.icu.math.MathContext.SCIENTIFIC,false,android.icu.math.MathContext.ROUND_HALF_EVEN); in diagdivide()
1561 ….math.BigDecimal("0.045")).divide(one,2,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1562 ….math.BigDecimal("0.045")).divide(one,1,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1563 ….math.BigDecimal("0.045")).divide(one,0,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1564 ….math.BigDecimal("0.050")).divide(one,2,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1565 ….math.BigDecimal("0.050")).divide(one,1,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1566 ….math.BigDecimal("0.050")).divide(one,0,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1567 ….math.BigDecimal("0.150")).divide(one,2,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1568 ….math.BigDecimal("0.150")).divide(one,1,android.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfTest.java1592 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
1609 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
DNumberFormatTestTuple.java139 roundingModeMap.put("halfEven", BigDecimal.ROUND_HALF_EVEN);
DNumberFormatTest.java464 BigDecimal.ROUND_HALF_EVEN, in TestRoundingScientific10542()
571 {BigDecimal.ROUND_HALF_EVEN, 2.5, "2"}, in Test10419RoundingWith0FractionDigits()
2513 for (int mode = BigDecimal.ROUND_UP; mode < BigDecimal.ROUND_HALF_EVEN; ++mode) { in TestRounding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1588 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
1605 enFormatter.setRoundingMode(BigDecimal.ROUND_HALF_EVEN); in TestRounding()
DNumberFormatTestTuple.java138 roundingModeMap.put("halfEven", BigDecimal.ROUND_HALF_EVEN);
DNumberFormatTest.java460 BigDecimal.ROUND_HALF_EVEN, in TestRoundingScientific10542()
567 {BigDecimal.ROUND_HALF_EVEN, 2.5, "2"}, in Test10419RoundingWith0FractionDigits()
2509 for (int mode = BigDecimal.ROUND_UP; mode < BigDecimal.ROUND_HALF_EVEN; ++mode) { in TestRounding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimal.java936 …")).ok = com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN == (constantVal = com.ibm.icu.math.MathContex… in diagmutation()
1414 …text(2,com.ibm.icu.math.MathContext.SCIENTIFIC,false,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN); in diagdivide()
1557 ….math.BigDecimal("0.045")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1558 ….math.BigDecimal("0.045")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1559 ….math.BigDecimal("0.045")).divide(one,0,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1560 ….math.BigDecimal("0.050")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1561 ….math.BigDecimal("0.050")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1562 ….math.BigDecimal("0.050")).divide(one,0,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1563 ….math.BigDecimal("0.150")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
1564 ….math.BigDecimal("0.150")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_HALF_EVEN).toString()).… in diagdivide()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat.java903 …onentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_HALF_EVEN) { in format()
1041 case BigDecimal.ROUND_HALF_EVEN: in round()
5081 roundingMode = BigDecimal.ROUND_HALF_EVEN; in applyPatternWithoutExpandAffix()
5464 roundingMode = BigDecimal.ROUND_HALF_EVEN; in readObject()
5724 private int roundingMode = BigDecimal.ROUND_HALF_EVEN;
6114 if (roundingMode == BigDecimal.ROUND_HALF_EVEN || isScientificNotation()) { in resetActualRounding()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMathUtils.java1568 case BigDecimal.ROUND_HALF_EVEN : {
1611 "ROUND_HALF_EVEN", BigDecimal.ROUND_HALF_EVEN,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat.java908 …onentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_HALF_EVEN) { in format()
1046 case BigDecimal.ROUND_HALF_EVEN: in round()
5152 roundingMode = BigDecimal.ROUND_HALF_EVEN; in applyPatternWithoutExpandAffix()
5551 roundingMode = BigDecimal.ROUND_HALF_EVEN; in readObject()
5820 private int roundingMode = BigDecimal.ROUND_HALF_EVEN;
6219 if (roundingMode == BigDecimal.ROUND_HALF_EVEN || isScientificNotation()) { in resetActualRounding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTest.java617 MathContext.ROUND_HALF_DOWN, MathContext.ROUND_HALF_EVEN, MathContext.ROUND_HALF_UP,
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DSerializableTest.java621 MathContext.ROUND_HALF_DOWN, MathContext.ROUND_HALF_EVEN, MathContext.ROUND_HALF_UP,

12