Home
last modified time | relevance | path

Searched refs:UNNECESSARY (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java204 checkDivide(expected, dividend, 1, 0, RoundingMode.UNNECESSARY); in testDivideByOne()
273 minLong.divide(new BigDecimal("-1"), /* scale = */ 0, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
278 .divide(new BigDecimal("-0.1"), /* scale = */ 0, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
283 … .divide(new BigDecimal("-1E+1"), /* scale = */ 0, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
287 minLong.divide(new BigDecimal("-1E+1"), /* scale = */ 1, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
293 minLong.divide(new BigDecimal("-1"), /* scale = */ 1, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
297 minLong.divide(new BigDecimal("-1.0"), /* scale = */ 0, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
301 minLong.divide(new BigDecimal("-1.0"), /* scale = */ 1, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
308 new BigDecimal("-5E-1"), /* scale = */ 0, RoundingMode.UNNECESSARY)); in testDivideAvoids64bitOverflow()
337 assertEquals(bigHalfValue, bigValue.divide(two, RoundingMode.UNNECESSARY)); in checkCommonOperations()
[all …]
DOldBigDecimalArithmeticTest.java44 mc = new MathContext(33, RoundingMode.UNNECESSARY); in testAddMathContextNonTrivial()
67 mc = new MathContext(33, RoundingMode.UNNECESSARY); in testSubtractMathContextNonTrivial()
142 mc = new MathContext(2, RoundingMode.UNNECESSARY); in testPowMathContextNonTrivial()
152 mc = new MathContext(4, RoundingMode.UNNECESSARY); in testPowMathContextNonTrivial()
175 mc = new MathContext(4, RoundingMode.UNNECESSARY); in testPowMathContextNonTrivial()
256 mc = new MathContext(13, RoundingMode.UNNECESSARY); in testDivideScaleRoundingModeNonTrivial()
262 mc = new MathContext(33, RoundingMode.UNNECESSARY); in testDivideScaleRoundingModeNonTrivial()
304 mc = new MathContext(13, RoundingMode.UNNECESSARY); in testDivideMathContextNonTrivial()
310 mc = new MathContext(33, RoundingMode.UNNECESSARY); in testDivideMathContextNonTrivial()
406 mc = new MathContext(1, RoundingMode.UNNECESSARY); in testDivideAndRemainderMathContextNonTrivial()
[all …]
DOldBigDecimalConstructorsTest.java96 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testConstrBigIntegerMathContext()
183 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testConstrBigIntegerScaleMathContext()
243 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testConstrBigIntegerScaleMathContext()
352 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testConstrCharIntIntMathContext()
414 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testConstrCharMathContext()
512 mc = new MathContext(8, RoundingMode.UNNECESSARY); in testConstrDoubleMathContext()
629 mc = new MathContext(8, RoundingMode.UNNECESSARY); in testConstrLongMathContext()
694 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testConstrStringMathContext()
DOldBigDecimalCompareTest.java47 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testAbsMathContextNeg()
DOldBigDecimalTest.java178 setScale1.setScale(3, RoundingMode.UNNECESSARY); in test_setScaleILjava_math_RoundingMode()
/libcore/luni/src/main/java/java/math/
DRoundingMode.java82 UNNECESSARY(BigDecimal.ROUND_UNNECESSARY); enumConstant
115 return UNNECESSARY; in valueOf()
DBigDecimal.java1945 return setScale(newScale, RoundingMode.UNNECESSARY); in setScale()
2816 case UNNECESSARY: in roundingBehavior()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java35 … ROUND_UNNECESSARY", RoundingMode.valueOf(BigDecimal.ROUND_UNNECESSARY), RoundingMode.UNNECESSARY); in test_valueOfI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2136 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_formatToCharacterIterator_roundingUnnecessaryArithmeticException()
2151 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_formatDouble_roundingUnnecessaryArithmeticException()
2167 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_roundingUnnecessaryArithmeticException()
2298 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_withRoundingMode()
2401 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_withRoundingMode()
2504 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_withRoundingMode()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4144 case UNNECESSARY: in convertRoundingMode()