Home
last modified time | relevance | path

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

123

/external/icu/android_icu4j/src/main/java/android/icu/math/
DMathContext.java197 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…
DBigDecimal.java300 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/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DMathContext.java206 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…
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/classes/core/src/com/ibm/icu/math/
DMathContext.java206 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…
DBigDecimal.java309 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/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dquantize_and_dequantize_op.cc35 ROUND_HALF_UP, enumerator
141 case ROUND_HALF_UP: { in Compile()
174 round_mode_ = ROUND_HALF_UP; in QuantizeAndDequantizeV2Op()
/external/tensorflow/tensorflow/core/kernels/
Dquantize_and_dequantize_op.h31 ROUND_HALF_UP, enumerator
72 case ROUND_HALF_UP: in ClampScaleAndRound()
97 case ROUND_HALF_UP: in ScaleAndRound()
Dquantize_and_dequantize_op.cc63 round_mode_ = ROUND_HALF_UP; in QuantizeAndDequantizeV2Op()
/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()
/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()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java128 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: in getRoundingMode()
220 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP); in setRoundingMode()
DDecimalFormatICU.java217 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/
DUniversalTimeScale.java477 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
494 return universalTime.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUniversalTimeScale.java525 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); in toBigDecimal()
544 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.java164 icuMode = BigDecimal.ROUND_HALF_UP; in getRoundingMode()
270 case BigDecimal.ROUND_HALF_UP: in setRoundingMode()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPathMeasure.java55 bd = bd.setScale(decimalPlace, BigDecimal.ROUND_HALF_UP); in round()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimalTest.java717 …("cuc015", android.icu.math.BigDecimal.ROUND_HALF_UP == (constantVal = android.icu.math.MathContex… in diagmutation()
724 …oid.icu.math.MathContext.DEFAULT.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
732 …stFmwk.assertTrue("cuc033", (mc9.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
736 …tFmwk.assertTrue("cuc037", (mcld.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
740 …tFmwk.assertTrue("cuc041", (mcfd.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
1198 …ontext(2,android.icu.math.MathContext.SCIENTIFIC,false,android.icu.math.MathContext.ROUND_HALF_UP); in diagdivide()
1238 rhu = android.icu.math.MathContext.ROUND_HALF_UP; in diagdivide()
1350 …u.math.BigDecimal("0.045")).divide(one,2,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1351 …u.math.BigDecimal("0.045")).divide(one,1,android.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1352 …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/
DDiagBigDecimalTest.java714 …("cuc015", com.ibm.icu.math.BigDecimal.ROUND_HALF_UP == (constantVal = com.ibm.icu.math.MathContex… in diagmutation()
721 …ibm.icu.math.MathContext.DEFAULT.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
729 …stFmwk.assertTrue("cuc033", (mc9.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
733 …tFmwk.assertTrue("cuc037", (mcld.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
737 …tFmwk.assertTrue("cuc041", (mcfd.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagmutation()
1195 …ontext(2,com.ibm.icu.math.MathContext.SCIENTIFIC,false,com.ibm.icu.math.MathContext.ROUND_HALF_UP); in diagdivide()
1235 rhu = com.ibm.icu.math.MathContext.ROUND_HALF_UP; in diagdivide()
1347 …u.math.BigDecimal("0.045")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1348 …u.math.BigDecimal("0.045")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
1349 …u.math.BigDecimal("0.045")).divide(one,0,com.ibm.icu.math.MathContext.ROUND_HALF_UP).toString()).e… in diagdivide()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DRoundingUtils.java79 case BigDecimal.ROUND_HALF_UP: in getRoundingDirection()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DRoundingUtils.java77 case BigDecimal.ROUND_HALF_UP: in getRoundingDirection()
/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()
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py161 C.ROUND_HALF_UP, C.ROUND_HALF_DOWN, C.ROUND_HALF_EVEN,
284 rounding=P.ROUND_HALF_UP,
383 if mode in (P.ROUND_HALF_EVEN, P.ROUND_HALF_UP, P.ROUND_HALF_DOWN):
/external/fonttools/Lib/fontTools/misc/
Dpy23.py370 exponent, rounding=_decimal.ROUND_HALF_UP)

123