/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/ |
D | MathContext.java | 206 public static final int ROUND_HALF_UP=4; field in MathContext 305 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP; 313 …private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DO…
|
D | BigDecimal.java | 307 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/android_icu4j/src/main/java/android/icu/math/ |
D | MathContext.java | 197 public static final int ROUND_HALF_UP=4; field in MathContext 294 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP; 302 …private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DO…
|
D | BigDecimal.java | 300 public static final int ROUND_HALF_UP = android.icu.math.MathContext.ROUND_HALF_UP; field in BigDecimal 2022 … return format(before, after, -1, -1, android.icu.math.MathContext.SCIENTIFIC, ROUND_HALF_UP); in format() 2130 if (exround != ROUND_HALF_UP) { in format() 2133 exround = ROUND_HALF_UP; in format() 3615 if (mode == ROUND_HALF_UP) { // default first [most common] in round()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
D | MathContext.java | 206 public static final int ROUND_HALF_UP=4; field in MathContext 305 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP; 313 …private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DO…
|
D | BigDecimal.java | 309 public static final int ROUND_HALF_UP = com.ibm.icu.math.MathContext.ROUND_HALF_UP; field in BigDecimal 2075 … return format(before, after, -1, -1, com.ibm.icu.math.MathContext.SCIENTIFIC, ROUND_HALF_UP); in format() 2184 if (exround != ROUND_HALF_UP) { in format() 2187 exround = ROUND_HALF_UP; in format() 3690 if (mode == ROUND_HALF_UP) { // default first [most common] in round()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 61 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871() 72 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871() 85 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
|
D | NumberFormatTestData.java | 142 roundingModeMap.put("halfUp", BigDecimal.ROUND_HALF_UP);
|
D | NumberFormatTest.java | 465 BigDecimal.ROUND_HALF_UP, in TestRoundingScientific10542() 573 {BigDecimal.ROUND_HALF_UP, 2.5, "3"}, in Test10419RoundingWith0FractionDigits() 2569 nf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestRounding() 2654 f.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestBigDecimalRounding() 3753 df.setRoundingMode(MathContext.ROUND_HALF_UP); in TestNegZeroRounding()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 62 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871() 73 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871() 86 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); in testJB1871()
|
D | NumberFormatTestData.java | 143 roundingModeMap.put("halfUp", BigDecimal.ROUND_HALF_UP);
|
D | NumberFormatTest.java | 466 BigDecimal.ROUND_HALF_UP, in TestRoundingScientific10542() 574 {BigDecimal.ROUND_HALF_UP, 2.5, "3"}, in Test10419RoundingWith0FractionDigits() 2570 nf.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestRounding() 2655 f.setRoundingMode(BigDecimal.ROUND_HALF_UP); in TestBigDecimalRounding() 3754 df.setRoundingMode(MathContext.ROUND_HALF_UP); in TestNegZeroRounding()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | NumberFormatICU.java | 128 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: in getRoundingMode() 220 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
|
D | DecimalFormatICU.java | 217 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: in getRoundingMode() 378 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | UniversalTimeScale.java | 474 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/ |
D | UniversalTimeScale.java | 524 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal() 543 return universalTime.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
D | NumberFormatJDK.java | 164 icuMode = BigDecimal.ROUND_HALF_UP; in getRoundingMode() 270 case BigDecimal.ROUND_HALF_UP: in setRoundingMode()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/ |
D | DiagBigDecimalTest.java | 712 …("cuc015", android.icu.math.BigDecimal.ROUND_HALF_UP == (constantVal = android.icu.math.MathContex… in diagmutation() 719 …oid.icu.math.MathContext.DEFAULT.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 727 …stFmwk.assertTrue("cuc033", (mc9.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 731 …tFmwk.assertTrue("cuc037", (mcld.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 735 …tFmwk.assertTrue("cuc041", (mcfd.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 1193 …ontext(2,android.icu.math.MathContext.SCIENTIFIC,false,android.icu.math.MathContext.ROUND_HALF_UP); in diagdivide() 1233 rhu = android.icu.math.MathContext.ROUND_HALF_UP; in diagdivide() 1345 …u.math.BigDecimal("0.045")).divide(one,2,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide() 1346 …u.math.BigDecimal("0.045")).divide(one,1,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide() 1347 …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/ |
D | DiagBigDecimalTest.java | 711 …("cuc015", com.ibm.icu.math.BigDecimal.ROUND_HALF_UP == (constantVal = com.ibm.icu.math.MathContex… in diagmutation() 718 …ibm.icu.math.MathContext.DEFAULT.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 726 …stFmwk.assertTrue("cuc033", (mc9.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 730 …tFmwk.assertTrue("cuc037", (mcld.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 734 …tFmwk.assertTrue("cuc041", (mcfd.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation() 1192 …ontext(2,com.ibm.icu.math.MathContext.SCIENTIFIC,false,com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagdivide() 1232 rhu = com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagdivide() 1344 …u.math.BigDecimal("0.045")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide() 1345 …u.math.BigDecimal("0.045")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide() 1346 …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/ |
D | MathUtils.java | 1465 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/ |
D | DfpDec.java | 225 case ROUND_HALF_UP: in round()
|
D | DfpField.java | 38 ROUND_HALF_UP, enumConstant
|
/external/python/cpython2/Lib/ |
D | decimal.py | 150 ROUND_HALF_UP = 'ROUND_HALF_UP' variable 344 if context.rounding in (ROUND_HALF_UP, ROUND_HALF_EVEN, 1799 ROUND_HALF_UP = _round_half_up, 5894 prec=9, rounding=ROUND_HALF_UP,
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
D | SerializableTestUtility.java | 667 MathContext.ROUND_HALF_DOWN, MathContext.ROUND_HALF_EVEN, MathContext.ROUND_HALF_UP,
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | SerializableTestUtility.java | 666 MathContext.ROUND_HALF_DOWN, MathContext.ROUND_HALF_EVEN, MathContext.ROUND_HALF_UP,
|