/libcore/luni/src/test/java/libcore/java/math/ |
D | BigDecimalTest.java | 204 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 …]
|
D | OldBigDecimalArithmeticTest.java | 44 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 …]
|
D | OldBigDecimalConstructorsTest.java | 96 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()
|
D | OldBigDecimalCompareTest.java | 47 mc = new MathContext(34, RoundingMode.UNNECESSARY); in testAbsMathContextNeg()
|
D | OldBigDecimalTest.java | 178 setScale1.setScale(3, RoundingMode.UNNECESSARY); in test_setScaleILjava_math_RoundingMode()
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | ZeroScalingTests.java | 43 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),
|
D | SquareRootTests.java | 156 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));
|
D | DivideTests.java | 133 RoundingMode.UNNECESSARY); in anotherDivide() 342 RoundingMode rounding = RoundingMode.UNNECESSARY; in divideByOneTests() 360 divide(one, RoundingMode.UNNECESSARY); in divideByOneTests()
|
D | AddTests.java | 44 EnumSet.complementOf(EnumSet.of(RoundingMode.UNNECESSARY));
|
/libcore/ojluni/src/main/java/java/math/ |
D | RoundingMode.java | 356 UNNECESSARY(BigDecimal.ROUND_UNNECESSARY); enumConstant 388 case BigDecimal.ROUND_UNNECESSARY -> UNNECESSARY; in valueOf()
|
D | BigDecimal.java | 1784 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/ |
D | RoundingModeTest.java | 35 … ROUND_UNNECESSARY", RoundingMode.valueOf(BigDecimal.ROUND_UNNECESSARY), RoundingMode.UNNECESSARY); in test_valueOfI()
|
/libcore/ojluni/src/test/java/math/RoundingMode/ |
D | RoundingModeTests.java | 71 … Assert.assertEquals(RoundingMode.UNNECESSARY, RoundingMode.valueOf(BigDecimal.ROUND_UNNECESSARY), in testRoundingMode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 2148 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/ |
D | DecimalFormat.java | 4329 case UNNECESSARY: in convertRoundingMode()
|
/libcore/api/ |
D | current.txt | 5320 enum_constant public static final java.math.RoundingMode UNNECESSARY;
|