/external/guava/guava-tests/test/com/google/common/math/ |
D | BigDecimalMathTest.java | 22 import static java.math.RoundingMode.HALF_DOWN; 98 .setExpectation(0.3333333333333333, HALF_EVEN, FLOOR, DOWN, HALF_UP, HALF_DOWN) in testRoundToDouble_oneThird() 108 .setExpectation(0.0, HALF_EVEN, FLOOR, DOWN, HALF_DOWN) in testRoundToDouble_halfMinDouble() 118 .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN) in testRoundToDouble_halfNegativeMinDouble() 137 .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN) in testRoundToDouble_maxPreciselyRepresentablePlusOne() 148 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusOne() 159 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusOneHalf() 171 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusThree() local 190 .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN) in testRoundToDouble_maxDoublePlusOne() 199 .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN) in testRoundToDouble_wayTooBig() [all …]
|
D | BigIntegerMathTest.java | 33 import static java.math.RoundingMode.HALF_DOWN; 196 int result = BigIntegerMath.log2(x, HALF_DOWN); in testLog2HalfDown() 212 assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); in testLog2HalfEven() 290 int result = BigIntegerMath.log10(x, HALF_DOWN); in testLog10HalfDown() 307 assertEquals(BigIntegerMath.log10(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); in testLog10HalfEven() 396 BigInteger result = BigIntegerMath.sqrt(x, HALF_DOWN); 417 assertEquals(BigIntegerMath.sqrt(x, floorWasOdd ? HALF_UP : HALF_DOWN), halfEven); 624 .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN) 636 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN) 649 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) [all …]
|
D | MathTesting.java | 24 import static java.math.RoundingMode.HALF_DOWN; 51 ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
D | DoubleMathTest.java | 34 import static java.math.RoundingMode.HALF_DOWN; 393 for (RoundingMode mode : asList(HALF_EVEN, HALF_UP, HALF_DOWN)) {
|
/external/guava/android/guava-tests/test/com/google/common/math/ |
D | BigDecimalMathTest.java | 22 import static java.math.RoundingMode.HALF_DOWN; 98 .setExpectation(0.3333333333333333, HALF_EVEN, FLOOR, DOWN, HALF_UP, HALF_DOWN) in testRoundToDouble_oneThird() 108 .setExpectation(0.0, HALF_EVEN, FLOOR, DOWN, HALF_DOWN) in testRoundToDouble_halfMinDouble() 118 .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN) in testRoundToDouble_halfNegativeMinDouble() 137 .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN) in testRoundToDouble_maxPreciselyRepresentablePlusOne() 148 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusOne() 159 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusOneHalf() 171 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusThree() local 190 .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN) in testRoundToDouble_maxDoublePlusOne() 199 .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN) in testRoundToDouble_wayTooBig() [all …]
|
D | BigIntegerMathTest.java | 33 import static java.math.RoundingMode.HALF_DOWN; 196 int result = BigIntegerMath.log2(x, HALF_DOWN); in testLog2HalfDown() 212 assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); in testLog2HalfEven() 290 int result = BigIntegerMath.log10(x, HALF_DOWN); in testLog10HalfDown() 307 assertEquals(BigIntegerMath.log10(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); in testLog10HalfEven() 396 BigInteger result = BigIntegerMath.sqrt(x, HALF_DOWN); 417 assertEquals(BigIntegerMath.sqrt(x, floorWasOdd ? HALF_UP : HALF_DOWN), halfEven); 624 .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN) 636 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN) 649 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) [all …]
|
D | MathTesting.java | 24 import static java.math.RoundingMode.HALF_DOWN; 51 ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
D | DoubleMathTest.java | 34 import static java.math.RoundingMode.HALF_DOWN; 393 for (RoundingMode mode : asList(HALF_EVEN, HALF_UP, HALF_DOWN)) {
|
/external/guava/guava/src/com/google/common/math/ |
D | ToDoubleRounder.java | 53 case HALF_DOWN: in roundToDouble() 98 case HALF_DOWN: in roundToDouble() 141 case HALF_DOWN: in roundToDouble()
|
D | IntMath.java | 132 case HALF_DOWN: in log2() 173 case HALF_DOWN: in log10() 281 case HALF_DOWN: in sqrt() 354 case HALF_DOWN: in divide()
|
D | LongMath.java | 135 case HALF_DOWN: in log2() 177 case HALF_DOWN: in log10() 354 case HALF_DOWN: in sqrt() 420 case HALF_DOWN: in divide() 1294 case HALF_DOWN: in roundToDouble() 1336 case HALF_DOWN: in roundToDouble()
|
D | BigIntegerMath.java | 24 import static java.math.RoundingMode.HALF_DOWN; 105 case HALF_DOWN: in log2() 204 case HALF_DOWN: in log10() 247 case HALF_DOWN: in sqrt()
|
D | DoubleMath.java | 101 case HALF_DOWN: in roundIntermediate() 263 case HALF_DOWN: in log2()
|
/external/guava/android/guava/src/com/google/common/math/ |
D | ToDoubleRounder.java | 53 case HALF_DOWN: in roundToDouble() 98 case HALF_DOWN: in roundToDouble() 141 case HALF_DOWN: in roundToDouble()
|
D | IntMath.java | 132 case HALF_DOWN: in log2() 173 case HALF_DOWN: in log10() 281 case HALF_DOWN: in sqrt() 354 case HALF_DOWN: in divide()
|
D | LongMath.java | 135 case HALF_DOWN: in log2() 177 case HALF_DOWN: in log10() 354 case HALF_DOWN: in sqrt() 420 case HALF_DOWN: in divide() 1294 case HALF_DOWN: in roundToDouble() 1336 case HALF_DOWN: in roundToDouble()
|
D | BigIntegerMath.java | 24 import static java.math.RoundingMode.HALF_DOWN; 105 case HALF_DOWN: in log2() 204 case HALF_DOWN: in log10() 247 case HALF_DOWN: in sqrt()
|
D | DoubleMath.java | 101 case HALF_DOWN: in roundIntermediate() 263 case HALF_DOWN: in log2()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | NumberFormatICU.java | 123 mode = RoundingMode.HALF_DOWN; in getRoundingMode() 215 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
|
D | DecimalFormatICU.java | 212 mode = RoundingMode.HALF_DOWN; in getRoundingMode() 373 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
D | NumberFormatJDK.java | 159 } else if (jdkMode.equals(RoundingMode.HALF_DOWN)) { in getRoundingMode() 265 mode = RoundingMode.HALF_DOWN; in setRoundingMode()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 547 {1.025, -2, RoundingMode.HALF_DOWN, "1"}, in testNickelRounding() 556 {1.075, -2, RoundingMode.HALF_DOWN, "1.05"}, in testNickelRounding() 566 {2.75, -1, RoundingMode.HALF_DOWN, "2.5"}, in testNickelRounding()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 544 {1.025, -2, RoundingMode.HALF_DOWN, "1"}, in testNickelRounding() 553 {1.075, -2, RoundingMode.HALF_DOWN, "1.05"}, in testNickelRounding() 563 {2.75, -1, RoundingMode.HALF_DOWN, "2.5"}, in testNickelRounding()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberSkeletonImpl.java | 292 return RoundingMode.HALF_DOWN; in roundingMode() 396 case HALF_DOWN: in roundingMode()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberSkeletonImpl.java | 293 return RoundingMode.HALF_DOWN; in roundingMode() 397 case HALF_DOWN: in roundingMode()
|