Home
last modified time | relevance | path

Searched refs:UP (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/main/java/java/math/
DRoundingMode.java32 UP(BigDecimal.ROUND_UP), enumConstant
117 return UP; in valueOf()
DBigDecimal.java2821 case UP: in roundingBehavior()
/libcore/luni/src/test/java/libcore/java/math/
DMathContextTest.java33 MathContext mc = new MathContext("precision=" + p + " roundingMode=" + RoundingMode.UP); in testConstructor()
35 assertEquals(RoundingMode.UP, mc.getRoundingMode()); in testConstructor()
DOldBigDecimalConstructorsTest.java52 mc = new MathContext(31, RoundingMode.UP); in testConstrBigIntegerMathContext()
139 mc = new MathContext(31, RoundingMode.UP); in testConstrBigIntegerScaleMathContext()
199 mc = new MathContext(31, RoundingMode.UP); in testConstrBigIntegerScaleMathContext()
308 mc = new MathContext(31, RoundingMode.UP); in testConstrCharIntIntMathContext()
396 mc = new MathContext(31, RoundingMode.UP); in testConstrCharMathContext()
447 mc = new MathContext(9, RoundingMode.UP); in testConstrDoubleMathContext()
585 mc = new MathContext(15, RoundingMode.UP); in testConstrLongMathContext()
676 mc = new MathContext(31, RoundingMode.UP); in testConstrStringMathContext()
DOldBigDecimalTest.java185 setScale2 = setScale1.setScale(2, RoundingMode.UP); in test_setScaleILjava_math_RoundingMode()
191 setScale2 = setNeg.setScale(2, RoundingMode.UP); in test_setScaleILjava_math_RoundingMode()
DOldBigDecimalCompareTest.java35 MathContext mc = new MathContext(34, RoundingMode.UP); in testAbsMathContextNeg()
DOldBigDecimalConvertTest.java146 MathContext mc = new MathContext(iPresition, RoundingMode.UP); in test_ByteValueExactNeg()
258 MathContext mc = new MathContext(iPresition, RoundingMode.UP); in test_ByteValueNeg()
DOldBigDecimalArithmeticTest.java483 mc = new MathContext(31, RoundingMode.UP); in testRoundNonTrivial()
543 RoundingMode rm = RoundingMode.UP; in test_DivideBigDecimalRoundingModeUP()
DBigDecimalTest.java136 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.UP); in testDivideRounding()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java36 …tEquals("valueOf failed for ROUND_UP", RoundingMode.valueOf(BigDecimal.ROUND_UP), RoundingMode.UP); in test_valueOfI()
DBigDecimalArithmeticTest.java61 MathContext mc = new MathContext(5, RoundingMode.UP); in testAddMathContextEqualScalePosPos()
1031 RoundingMode rm = RoundingMode.UP; in testDivideBigDecimalScaleRoundingModeUP()
1159 RoundingMode rm = RoundingMode.UP; in testDivideBigDecimalScaleMathContextUP()
1334 RoundingMode rm = RoundingMode.UP; in testDivideToIntegralValueMathContextUP()
1418 RoundingMode rm = RoundingMode.UP; in testDivideAndRemainderMathContextUP()
/libcore/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java106 nf.setRoundingMode(RoundingMode.UP); in testPercentageRounding()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2283 decimalFormat.setRoundingMode(RoundingMode.UP); in test_format_withRoundingMode()
2392 decimalFormat.setRoundingMode(RoundingMode.UP); in test_format_withRoundingMode()
2489 decimalFormat.setRoundingMode(RoundingMode.UP); in test_format_withRoundingMode()
2545 decimalFormat.setRoundingMode(RoundingMode.UP); in test_format_withRoundingMode()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4130 case UP: in convertRoundingMode()