/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalArithmeticTest.java | 36 a.round(mc).toString()); in testAddMathContextNonTrivial() 38 b.round(mc).toString()); in testAddMathContextNonTrivial() 40 a.round(mc).add(b.round(mc)).toString()); in testAddMathContextNonTrivial() 61 a.round(mc).subtract(b.round(mc)).toString()); in testSubtractMathContextNonTrivial() 83 res = a.round(mc).multiply(b.round(mc)); in testMultiplyMathContextNonTrivial() 85 res = res.round(mc); in testMultiplyMathContextNonTrivial() 131 a.round(mc).pow(1000).round(mc).toString()); in testPowMathContextNonTrivial() 138 a.round(mc).pow(1000).round(mc).toString()); in testPowMathContextNonTrivial() 197 a.round(mc).divide(b.round(mc)).toString()); in testDivideINonTrivial() 252 a.round(mc).divide(b.round(mc)).toString()); in testDivideScaleRoundingModeNonTrivial() [all …]
|
D | BigDecimalTest.java | 64 BigDecimal rounded = bigDecimal.round(new MathContext(2, RoundingMode.FLOOR)); in testRound()
|
/libcore/luni/src/main/java/java/lang/ |
D | HexStringParser.java | 217 round(); in processNormalNumber() 226 round(); in processSubNormalNumber() 256 private void round() { in round() method in HexStringParser
|
D | StrictMath.java | 663 public static long round(double d) { in round() method in StrictMath 664 return Math.round(d); in round() 686 public static int round(float f) { in round() method in StrictMath 687 return Math.round(f); in round()
|
D | Math.java | 673 public static long round(double d) { in round() method in Math 700 public static int round(float f) { in round() method in Math
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 794 return add(augend).round(mc); in add() 804 return add(augend).round(mc); in add() 808 return add(augend).round(mc); in add() 823 return larger.round(mc); in add() 897 return subtract(subtrahend).round(mc); in subtract() 914 return leftOperand.round(mc); in subtract() 918 return subtract(subtrahend).round(mc); in subtract() 1657 accum = round(newPrecision); in pow() 1741 return round(mc); in plus() 1840 public BigDecimal round(MathContext mc) { in round() method in BigDecimal
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 269 StrictMath.round(d); in timeRoundD() 275 StrictMath.round(f); in timeRoundF()
|
D | MathBenchmark.java | 369 result = Math.round(d); in timeRoundD() 377 result = Math.round(f); in timeRoundF()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidStrictMathTest.java | 448 -91, StrictMath.round(-90.89d)); in testRoundD() 454 -91, StrictMath.round(-90.89f)); in testRoundF()
|
D | OldAndroidMathTest.java | 432 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89d)); in testRoundD() 437 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89f)); in testRoundF()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalArithmeticTest.java | 1543 BigDecimal result = aNumber.round(mc); in testRoundMathContextHALF_DOWN() 1560 BigDecimal result = aNumber.round(mc); in testRoundMathContextHALF_UP() 1576 BigDecimal result = aNumber.round(mc); in testRoundMathContextPrecision0()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 915 -91, StrictMath.round(-90.89d)); in test_roundD() 924 -91, StrictMath.round(-90.89f)); in test_roundF()
|
D | MathTest.java | 1317 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89d)); in test_roundD() 1325 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89f)); in test_roundF()
|
/libcore/luni/src/main/java/java/util/ |
D | Formatter.java | 2176 l = Math.round(d * Math.pow(10, precision + 1)); in transformG()
|