Home
last modified time | relevance | path

Searched refs:ROUND_DOWN (Results 1 – 25 of 48) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DMathContext.java149 public static final int ROUND_DOWN=1; field in MathContext
313 …l int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUN…
DBigDecimal.java277 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/math/
DMathContext.java144 public static final int ROUND_DOWN=1; field in MathContext
302 …l int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUN…
DBigDecimal.java272 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/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DRoundingUtils.java70 case BigDecimal.ROUND_DOWN: in getRoundingDirection()
134 case BigDecimal.ROUND_DOWN: in roundsAtMidpoint()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DRoundingUtils.java68 case BigDecimal.ROUND_DOWN: in getRoundingDirection()
132 case BigDecimal.ROUND_DOWN: in roundsAtMidpoint()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java116 case com.ibm.icu.math.BigDecimal.ROUND_DOWN: in getRoundingMode()
212 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_DOWN); in setRoundingMode()
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/
DNumberFormatJDK.java156 icuMode = BigDecimal.ROUND_DOWN; in getRoundingMode()
258 case BigDecimal.ROUND_DOWN: in setRoundingMode()
/third_party/libdrm/amdgpu/
Damdgpu_internal.h41 #define ROUND_DOWN(x, y) ((x) & ~__round_mask(x, y)) macro
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
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/
DUniversalTimeScale.java608 return universalTime.divide(units, BigDecimal.ROUND_DOWN).subtract(epochOffset); in toBigDecimalTrunc()
/third_party/decimal.js/
Ddecimal.global.d.ts311 static readonly ROUND_DOWN: 1;
Ddecimal.d.ts290 static readonly ROUND_DOWN: 1;
/third_party/python/Lib/test/
Dtest_decimal.py97 ROUND_DOWN = P.ROUND_DOWN variable
106 ROUND_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR,
254 'down' : ROUND_DOWN,
2369 c.rounding = ROUND_DOWN
2381 c.rounding = ROUND_DOWN
2393 c.rounding = ROUND_DOWN
2405 c.rounding = ROUND_DOWN
2556 r = d.to_integral(ROUND_DOWN)
2573 r = d.to_integral(ROUND_DOWN)
2613 context = Context(prec=5, rounding=ROUND_DOWN)
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DTimeUnitTest.java45 nf.setRoundingMode(BigDecimal.ROUND_DOWN); in Test10219FractionalPlurals()
DDataDrivenNumberFormatTestData.java143 roundingModeMap.put("down", BigDecimal.ROUND_DOWN);
DRbnfTest.java1668 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDataDrivenNumberFormatTestData.java140 roundingModeMap.put("down", BigDecimal.ROUND_DOWN);
DTimeUnitTest.java42 nf.setRoundingMode(BigDecimal.ROUND_DOWN); in Test10219FractionalPlurals()
DRbnfTest.java1759 enFormatter.setRoundingMode(BigDecimal.ROUND_DOWN); in TestRounding()
/third_party/python/Modules/_decimal/tests/
Ddeccheck.py181 RoundModes = [C.ROUND_UP, C.ROUND_DOWN, C.ROUND_CEILING, C.ROUND_FLOOR,
426 elif mode == P.ROUND_DOWN:
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimalTest.java710 …rue("cuc011", com.ibm.icu.math.BigDecimal.ROUND_DOWN == (constantVal = com.ibm.icu.math.MathContex… in diagmutation()
1181 …thContext(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 …cu.math.BigDecimal("0.055")).divide(one,2,com.ibm.icu.math.MathContext.ROUND_DOWN).toString()).equ… in diagdivide()
1318 …cu.math.BigDecimal("0.055")).divide(one,1,com.ibm.icu.math.MathContext.ROUND_DOWN).toString()).equ… in diagdivide()
1319 …cu.math.BigDecimal("0.055")).divide(one,0,com.ibm.icu.math.MathContext.ROUND_DOWN).toString()).equ… in diagdivide()
3145 …True("for117", (m050.format(-1,1,-1,-1,-1,com.ibm.icu.math.MathContext.ROUND_DOWN)).equals("0.0")); in diagformat()
3146 …True("for118", (m150.format(-1,1,-1,-1,-1,com.ibm.icu.math.MathContext.ROUND_DOWN)).equals("-0.1")… in diagformat()
3147 …True("for119", (d050.format(-1,1,-1,-1,-1,com.ibm.icu.math.MathContext.ROUND_DOWN)).equals("0.0")); in diagformat()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bigdec/
DDiagBigDecimalTest.java713 …uc011", ohos.global.icu.math.BigDecimal.ROUND_DOWN == (constantVal = ohos.global.icu.math.MathCont… in diagmutation()
1184 …t(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 …ath.BigDecimal("0.055")).divide(one,2,ohos.global.icu.math.MathContext.ROUND_DOWN).toString()).equ… in diagdivide()
1321 …ath.BigDecimal("0.055")).divide(one,1,ohos.global.icu.math.MathContext.ROUND_DOWN).toString()).equ… in diagdivide()
1322 …ath.BigDecimal("0.055")).divide(one,0,ohos.global.icu.math.MathContext.ROUND_DOWN).toString()).equ… in diagdivide()
3148 …("for117", (m050.format(-1,1,-1,-1,-1,ohos.global.icu.math.MathContext.ROUND_DOWN)).equals("0.0")); in diagformat()
3149 …("for118", (m150.format(-1,1,-1,-1,-1,ohos.global.icu.math.MathContext.ROUND_DOWN)).equals("-0.1")… in diagformat()
3150 …("for119", (d050.format(-1,1,-1,-1,-1,ohos.global.icu.math.MathContext.ROUND_DOWN)).equals("0.0")); in diagformat()
[all …]
/third_party/python/Doc/library/
Ddecimal.rst97 options include :const:`ROUND_CEILING`, :const:`ROUND_DOWN`,
257 >>> Decimal('7.325').quantize(Decimal('.01'), rounding=ROUND_DOWN)
1099 >>> context = Context(prec=5, rounding=ROUND_DOWN)
1502 .. data:: ROUND_DOWN
1810 DefaultContext.rounding = ROUND_DOWN
2129 >>> Context(prec=5, rounding=ROUND_DOWN).create_decimal('1.2345678')

12