Home
last modified time | relevance | path

Searched refs:UNNECESSARY (Results 1 – 16 of 16) 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/ojluni/src/test/java/math/BigDecimal/
DZeroScalingTests.java43 static MathContext longEnough = new MathContext(50, RoundingMode.UNNECESSARY);
57 new MathContext(0, RoundingMode.UNNECESSARY),
58 new MathContext(100, RoundingMode.UNNECESSARY),
59 new MathContext(5, RoundingMode.UNNECESSARY),
60 new MathContext(4, RoundingMode.UNNECESSARY),
61 new MathContext(3, RoundingMode.UNNECESSARY),
62 new MathContext(2, RoundingMode.UNNECESSARY),
63 new MathContext(1, RoundingMode.UNNECESSARY),
DSquareRootTests.java156 MathContext oneDigitExactly = new MathContext(1, RoundingMode.UNNECESSARY); in evenPowersOfTenTests()
231 BigDecimal scaledSquare = square.setScale(scale, RoundingMode.UNNECESSARY); in lowPrecisionPerfectSquares()
570 if (targetRm == RoundingMode.UNNECESSARY || originalPrecision == 0) {
572 (targetRm == RoundingMode.UNNECESSARY) ? RoundingMode.DOWN : targetRm;
595 new MathContext(originalPrecision, RoundingMode.UNNECESSARY));
DDivideTests.java133 RoundingMode.UNNECESSARY); in anotherDivide()
342 RoundingMode rounding = RoundingMode.UNNECESSARY; in divideByOneTests()
360 divide(one, RoundingMode.UNNECESSARY); in divideByOneTests()
DAddTests.java44 EnumSet.complementOf(EnumSet.of(RoundingMode.UNNECESSARY));
/libcore/ojluni/src/main/java/java/math/
DRoundingMode.java356 UNNECESSARY(BigDecimal.ROUND_UNNECESSARY); enumConstant
388 case BigDecimal.ROUND_UNNECESSARY -> UNNECESSARY; in valueOf()
DBigDecimal.java1784 RoundingMode.UNNECESSARY); in divide()
2278 if (targetRm == RoundingMode.UNNECESSARY || originalPrecision == 0) { in sqrt()
2280 (targetRm == RoundingMode.UNNECESSARY) ? RoundingMode.DOWN : targetRm; in sqrt()
2348 new MathContext(originalPrecision, RoundingMode.UNNECESSARY)); in sqrt()
/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/ojluni/src/test/java/math/RoundingMode/
DRoundingModeTests.java71 … Assert.assertEquals(RoundingMode.UNNECESSARY, RoundingMode.valueOf(BigDecimal.ROUND_UNNECESSARY), in testRoundingMode()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2148 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_formatToCharacterIterator_roundingUnnecessaryArithmeticException()
2163 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_formatDouble_roundingUnnecessaryArithmeticException()
2179 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_roundingUnnecessaryArithmeticException()
2310 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_withRoundingMode()
2413 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_withRoundingMode()
2516 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_withRoundingMode()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4329 case UNNECESSARY: in convertRoundingMode()
/libcore/api/
Dcurrent.txt5320 enum_constant public static final java.math.RoundingMode UNNECESSARY;