Home
last modified time | relevance | path

Searched refs:ROUND_DOWN (Results 1 - 25 of 34) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DRoundingUtils.java68 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 DMathContext.java149 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 DBigDecimal.java274 * @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 DRoundingUtils.java70 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 DMathContext.java144 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 DBigDecimal.java270 * @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 DNumberFormatICU.java116 case com.ibm.icu.math.BigDecimal.ROUND_DOWN: in getRoundingMode()
212 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_DOWN); in setRoundingMode()
H A DDecimalFormatICU.java205 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 DNumberFormatJDK.java156 icuMode = BigDecimal.ROUND_DOWN; in getRoundingMode()
258 case BigDecimal.ROUND_DOWN: in setRoundingMode()
/third_party/libdrm/amdgpu/
H A Damdgpu_internal.h41 #define ROUND_DOWN(x, y) ((x) & ~__round_mask(x, y)) macro
/third_party/pulseaudio/speex/libspeexdsp/
H A Djitter.c74 #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 DUniversalTimeScale.java660 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 DUniversalTimeScale.java608 return universalTime.divide(units, BigDecimal.ROUND_DOWN).subtract(epochOffset); in toBigDecimalTrunc()
/third_party/python/Lib/test/
H A Dtest_decimal.py87 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 DTimeUnitTest.java45 nf.setRoundingMode(BigDecimal.ROUND_DOWN); in Test10219FractionalPlurals()
H A DDataDrivenNumberFormatTestData.java143 roundingModeMap.put("down", BigDecimal.ROUND_DOWN);
H A DRbnfTest.java1668 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
H A DNumberFormatTest.java84 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 DDataDrivenNumberFormatTestData.java140 roundingModeMap.put("down", BigDecimal.ROUND_DOWN);
H A DTimeUnitTest.java42 nf.setRoundingMode(BigDecimal.ROUND_DOWN); in Test10219FractionalPlurals()
H A DRbnfTest.java1759 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
H A DNumberFormatTest.java81 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 Ddeccheck.py181 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 DDiagBigDecimalTest.java713 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 DDiagBigDecimalTest.java710 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...]

Completed in 69 milliseconds

12