Searched refs:round (Results 1 – 12 of 12) sorted by relevance
/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 | 69 BigDecimal rounded = bigDecimal.round(new MathContext(2, RoundingMode.FLOOR)); in testRound()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 667 public static int round(float a) { in round() method in StrictMath 668 return Math.round(a); in round() 691 public static long round(double a) { in round() method in StrictMath 692 return Math.round(a); in round()
|
D | Math.java | 675 public static int round(float a) { in round() method in Math 724 public static long round(double a) { in round() method in Math
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 299 StrictMath.round(d); in timeRoundD() 305 StrictMath.round(f); in timeRoundF()
|
D | MathBenchmark.java | 365 result = Math.round(d); in timeRoundD() 373 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 | 472 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89d)); in testRoundD() 477 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89f)); in testRoundF()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 979 -91, StrictMath.round(-90.89d)); in test_roundD() 988 -91, StrictMath.round(-90.89f)); in test_roundF()
|
D | MathTest.java | 1416 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89d)); in test_roundD() 1424 assertEquals("Incorrect rounding of a float", -91, Math.round(-90.89f)); in test_roundF()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigDecimal.java | 2355 public BigDecimal round(MathContext mc) { in round() method in BigDecimal
|
D | BigInteger.java | 4012 n = (int) Math.round(Math.log(b * LOG_TWO / logCache[radix]) / LOG_TWO - 1.0);
|