/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | RoundingUtils.java | 68 case BigDecimal.ROUND_DOWN: in getRoundingDirection() 132 case BigDecimal.ROUND_DOWN: in roundsAtMidpoint()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
H A D | MathContext.java | 149 public static final int ROUND_DOWN=1; field in MathContext 289 * @see #ROUND_DOWN 313 private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP}; 316 private static final java.lang.String ROUNDWORDS[]=new java.lang.String[]{"ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_UP"}; // matching names of the ROUNDS values 511 * {@link #ROUND_DOWN},
|
H A D | BigDecimal.java | 274 * @see MathContext#ROUND_DOWN 277 public static final int ROUND_DOWN = com.ibm.icu.math.MathContext.ROUND_DOWN; field in BigDecimal 3713 } else if (mode == ROUND_DOWN) { in round()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
H A D | RoundingUtils.java | 70 case BigDecimal.ROUND_DOWN: in getRoundingDirection() 134 case BigDecimal.ROUND_DOWN: in roundsAtMidpoint()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/ |
H A D | MathContext.java | 144 public static final int ROUND_DOWN=1; field in MathContext 278 * @see #ROUND_DOWN 302 private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP}; 305 private static final java.lang.String ROUNDWORDS[]=new java.lang.String[]{"ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_UP"}; // matching names of the ROUNDS values 492 * {@link #ROUND_DOWN},
|
H A D | BigDecimal.java | 270 * @see MathContext#ROUND_DOWN 272 public static final int ROUND_DOWN = ohos.global.icu.math.MathContext.ROUND_DOWN; field in BigDecimal 3638 } else if (mode == ROUND_DOWN) { in round()
|
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
H A D | NumberFormatICU.java | 116 case com.ibm.icu.math.BigDecimal.ROUND_DOWN: in getRoundingMode() 212 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_DOWN); in setRoundingMode()
|
H A D | DecimalFormatICU.java | 205 case com.ibm.icu.math.BigDecimal.ROUND_DOWN: in getRoundingMode() 370 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_DOWN); in setRoundingMode()
|
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
H A D | NumberFormatJDK.java | 156 icuMode = BigDecimal.ROUND_DOWN; in getRoundingMode() 258 case BigDecimal.ROUND_DOWN: in setRoundingMode()
|
/third_party/libdrm/amdgpu/ |
H A D | amdgpu_internal.h | 41 #define ROUND_DOWN(x, y) ((x) & ~__round_mask(x, y)) macro
|
/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | jitter.c | 74 #define ROUND_DOWN(x, step) ((x)<0 ? ((x)-(step)+1)/(step)*(step) : (x)/(step)*(step)) macro 230 latest = ROUND_DOWN(latest, jitter->delay_step); in compute_opt_delay() 663 desired_span = ROUND_DOWN(desired_span, jitter->concealment_size); in jitter_buffer_get()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | UniversalTimeScale.java | 660 return universalTime.divide(units, BigDecimal.ROUND_DOWN).subtract(epochOffset); in toBigDecimalTrunc()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | UniversalTimeScale.java | 608 return universalTime.divide(units, BigDecimal.ROUND_DOWN).subtract(epochOffset); in toBigDecimalTrunc()
|
/third_party/python/Lib/test/ |
H A D | test_decimal.py | 87 ROUND_DOWN = P.ROUND_DOWN variable 96 ROUND_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR, 244 'down' : ROUND_DOWN, 2421 c.rounding = ROUND_DOWN 2433 c.rounding = ROUND_DOWN 2445 c.rounding = ROUND_DOWN 2457 c.rounding = ROUND_DOWN 2606 # should work the same as to_integral in the ROUND_DOWN mode 2608 r = d.to_integral(ROUND_DOWN) [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | TimeUnitTest.java | 45 nf.setRoundingMode(BigDecimal.ROUND_DOWN); in Test10219FractionalPlurals()
|
H A D | DataDrivenNumberFormatTestData.java | 143 roundingModeMap.put("down", BigDecimal.ROUND_DOWN);
|
H A D | RbnfTest.java | 1668 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
|
H A D | NumberFormatTest.java | 84 BigDecimal.ROUND_DOWN, in TestRoundingScientific10542() 192 {BigDecimal.ROUND_DOWN, 1.588, "1"}, in Test10419RoundingWith0FractionDigits() 2558 f.setRoundingMode(BigDecimal.ROUND_DOWN); in TestBigDecimalRounding() 2623 "ROUND_UP", "ROUND_DOWN", "ROUND_CEILING", "ROUND_FLOOR", 3900 Integer.valueOf(BigDecimal.ROUND_DOWN), // Rounding Mode or null (implicit) in TestRoundingBehavior() 3916 Integer.valueOf(BigDecimal.ROUND_DOWN), in TestRoundingBehavior() 3932 Integer.valueOf(BigDecimal.ROUND_DOWN), in TestRoundingBehavior()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | DataDrivenNumberFormatTestData.java | 140 roundingModeMap.put("down", BigDecimal.ROUND_DOWN);
|
H A D | TimeUnitTest.java | 42 nf.setRoundingMode(BigDecimal.ROUND_DOWN); in Test10219FractionalPlurals()
|
H A D | RbnfTest.java | 1759 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
|
H A D | NumberFormatTest.java | 81 BigDecimal.ROUND_DOWN, in TestRoundingScientific10542() 189 {BigDecimal.ROUND_DOWN, 1.588, "1"}, in Test10419RoundingWith0FractionDigits() 2555 f.setRoundingMode(BigDecimal.ROUND_DOWN); in TestBigDecimalRounding() 2620 "ROUND_UP", "ROUND_DOWN", "ROUND_CEILING", "ROUND_FLOOR", 3897 Integer.valueOf(BigDecimal.ROUND_DOWN), // Rounding Mode or null (implicit) in TestRoundingBehavior() 3913 Integer.valueOf(BigDecimal.ROUND_DOWN), in TestRoundingBehavior() 3929 Integer.valueOf(BigDecimal.ROUND_DOWN), in TestRoundingBehavior()
|
/third_party/python/Modules/_decimal/tests/ |
H A D | deccheck.py | 181 RoundModes = [C.ROUND_UP, C.ROUND_DOWN, C.ROUND_CEILING, C.ROUND_FLOOR, 426 elif mode == P.ROUND_DOWN:
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bigdec/ |
H A D | DiagBigDecimalTest.java | 713 TestFmwk.assertTrue("cuc011", ohos.global.icu.math.BigDecimal.ROUND_DOWN == (constantVal = ohos.global.icu.math.MathContext.ROUND_DOWN)); in diagmutation() 1184 rmcd=new ohos.global.icu.math.MathContext(2,ohos.global.icu.math.MathContext.SCIENTIFIC,false,ohos.global.icu.math.MathContext.ROUND_DOWN); in diagdivide() 1239 rd = ohos.global.icu.math.MathContext.ROUND_DOWN; in diagdivide() 1300 rd=ohos.global.icu.math.MathContext.ROUND_DOWN; // test this is actually being used in diagdivide() 1320 TestFmwk.assertTrue("div104", ((new ohos.global.icu.math.BigDecimal("0.055")).divide(one,2,ohos.global.icu.math.MathContext.ROUND_DOWN).toString()).equals("0.05")); in diagdivide() 1321 TestFmwk.assertTrue("div105", ((new ohos.global.icu.math.BigDecimal("0.055")).divide(one,1,ohos.global.icu.math.MathContext.ROUND_DOWN).toString()).equals("0.0")); in diagdivide() 1322 TestFmwk.assertTrue("div106", ((new ohos.global.icu.math.BigDecimal("0.055")).divide(one,0,ohos.global.icu.math.MathContext.ROUND_DOWN).toString()).equals("0")); in diagdivide() 3148 TestFmwk.assertTrue("for117", (m050.format(-1,1,-1,-1,-1,ohos.global.icu.math.MathContext.ROUND_DOWN)).equals("0.0")); in diagformat() 3149 TestFmwk.assertTrue("for118", (m150.format(-1,1,-1,-1,-1,ohos.global.icu.math.MathContext.ROUND_DOWN)) in diagformat() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/ |
H A D | DiagBigDecimalTest.java | 710 TestFmwk.assertTrue("cuc011", com.ibm.icu.math.BigDecimal.ROUND_DOWN == (constantVal = com.ibm.icu.math.MathContext.ROUND_DOWN)); in diagmutation() 1181 rmcd=new com.ibm.icu.math.MathContext(2,com.ibm.icu.math.MathContext.SCIENTIFIC,false,com.ibm.icu.math.MathContext.ROUND_DOWN); in diagdivide() 1236 rd = com.ibm.icu.math.MathContext.ROUND_DOWN; in diagdivide() 1297 rd=com.ibm.icu.math.MathContext.ROUND_DOWN; // test this is actually being used in diagdivide() 1317 TestFmwk.assertTrue("div104", ((new com.ibm.icu.math.BigDecimal("0.055")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_DOWN).toString()).equals("0.05")); in diagdivide() 1318 TestFmwk.assertTrue("div105", ((new com.ibm.icu.math.BigDecimal("0.055")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_DOWN).toString()).equals("0.0")); in diagdivide() 1319 TestFmwk.assertTrue("div106", ((new com.ibm.icu.math.BigDecimal("0.055")).divide(one,0,com.ibm.icu.math.MathContext.ROUND_DOWN).toString()).equals("0")); in diagdivide() 3145 TestFmwk.assertTrue("for117", (m050.format(-1,1,-1,-1,-1,com.ibm.icu.math.MathContext.ROUND_DOWN)).equals("0.0")); in diagformat() 3146 TestFmwk.assertTrue("for118", (m150.format(-1,1,-1,-1,-1,com.ibm.icu.math.MathContext.ROUND_DOWN)) in diagformat() [all...] |