Home
last modified time | relevance | path

Searched refs:ROUND_HALF_UP (Results 1 – 25 of 37) sorted by relevance

12

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DMathContext.java204 public static final int ROUND_HALF_UP=4; field in MathContext
303 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP;
311 …private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DO…
DBigDecimal.java305 public static final int ROUND_HALF_UP = com.ibm.icu.math.MathContext.ROUND_HALF_UP; field in BigDecimal
2067 … return format(before, after, -1, -1, com.ibm.icu.math.MathContext.SCIENTIFIC, ROUND_HALF_UP); in format()
2176 if (exround != ROUND_HALF_UP) { in format()
2179 exround = ROUND_HALF_UP; in format()
3678 if (mode == ROUND_HALF_UP) { // default first [most common] in round()
/external/icu/android_icu4j/src/main/java/android/icu/math/
DMathContext.java195 public static final int ROUND_HALF_UP=4; field in MathContext
292 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP;
300 …private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DO…
DBigDecimal.java298 public static final int ROUND_HALF_UP = android.icu.math.MathContext.ROUND_HALF_UP; field in BigDecimal
2016 … return format(before, after, -1, -1, android.icu.math.MathContext.SCIENTIFIC, ROUND_HALF_UP); in format()
2124 if (exround != ROUND_HALF_UP) { in format()
2127 exround = ROUND_HALF_UP; in format()
3605 if (mode == ROUND_HALF_UP) { // default first [most common] in round()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DMathContext.java204 public static final int ROUND_HALF_UP=4; field in MathContext
303 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP;
311 …private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DO…
DBigDecimal.java307 public static final int ROUND_HALF_UP = com.ibm.icu.math.MathContext.ROUND_HALF_UP; field in BigDecimal
2069 … return format(before, after, -1, -1, com.ibm.icu.math.MathContext.SCIENTIFIC, ROUND_HALF_UP); in format()
2178 if (exround != ROUND_HALF_UP) { in format()
2181 exround = ROUND_HALF_UP; in format()
3680 if (mode == ROUND_HALF_UP) { // default first [most common] in round()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java60 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
71 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
84 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
DNumberFormatTestTuple.java140 roundingModeMap.put("halfUp", BigDecimal.ROUND_HALF_UP);
DNumberFormatTest.java461 BigDecimal.ROUND_HALF_UP, in TestRoundingScientific10542()
568 {BigDecimal.ROUND_HALF_UP, 2.5, "3"}, in Test10419RoundingWith0FractionDigits()
2502 nf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestRounding()
2585 f.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestBigDecimalRounding()
3666 df.setRoundingMode(MathContext.ROUND_HALF_UP); in TestNegZeroRounding()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java64 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()
DNumberFormatTestTuple.java141 roundingModeMap.put("halfUp", BigDecimal.ROUND_HALF_UP);
DNumberFormatTest.java465 BigDecimal.ROUND_HALF_UP, in TestRoundingScientific10542()
572 {BigDecimal.ROUND_HALF_UP, 2.5, "3"}, in Test10419RoundingWith0FractionDigits()
2506 nf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestRounding()
2589 f.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestBigDecimalRounding()
3670 df.setRoundingMode(MathContext.ROUND_HALF_UP); in TestNegZeroRounding()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java126 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: in getRoundingMode()
218 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
DDecimalFormatICU.java215 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: in getRoundingMode()
376 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DUniversalTimeScale.java474 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
491 return universalTime.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUniversalTimeScale.java522 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
541 return universalTime.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java162 icuMode = BigDecimal.ROUND_HALF_UP; in getRoundingMode()
268 case BigDecimal.ROUND_HALF_UP: in setRoundingMode()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimal.java941 …15")).ok = android.icu.math.BigDecimal.ROUND_HALF_UP == (constantVal = android.icu.math.MathContex… in diagmutation()
948 …roid.icu.math.MathContext.DEFAULT.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
956 … (new Test("cuc033")).ok = (mc9.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
960 … (new Test("cuc037")).ok = (mcld.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
964 … (new Test("cuc041")).ok = (mcfd.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
1422 …ontext(2,android.icu.math.MathContext.SCIENTIFIC,false,android.icu.math.MathContext.ROUND_HALF_UP); in diagdivide()
1462 rhu = android.icu.math.MathContext.ROUND_HALF_UP; in diagdivide()
1574 …u.math.BigDecimal("0.045")).divide(one,2,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1575 …u.math.BigDecimal("0.045")).divide(one,1,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1576 …u.math.BigDecimal("0.045")).divide(one,0,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimal.java937 …15")).ok = com.ibm.icu.math.BigDecimal.ROUND_HALF_UP == (constantVal = com.ibm.icu.math.MathContex… in diagmutation()
944 ….ibm.icu.math.MathContext.DEFAULT.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
952 … (new Test("cuc033")).ok = (mc9.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
956 … (new Test("cuc037")).ok = (mcld.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
960 … (new Test("cuc041")).ok = (mcfd.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagmutation()
1418 …ontext(2,com.ibm.icu.math.MathContext.SCIENTIFIC,false,com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagdivide()
1458 rhu = com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagdivide()
1570 …u.math.BigDecimal("0.045")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1571 …u.math.BigDecimal("0.045")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1572 …u.math.BigDecimal("0.045")).divide(one,0,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMathUtils.java1465 return round(x, scale, BigDecimal.ROUND_HALF_UP);
1505 return round(x, scale, BigDecimal.ROUND_HALF_UP);
1585 case BigDecimal.ROUND_HALF_UP : {
1612 "ROUND_HALF_UP", BigDecimal.ROUND_HALF_UP,
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpDec.java225 case ROUND_HALF_UP: in round()
DDfpField.java38 ROUND_HALF_UP, enumConstant
/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,
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DBigMatrixImpl.java85 private int roundingMode = BigDecimal.ROUND_HALF_UP;

12