Home
last modified time | relevance | path

Searched refs:HALF_DOWN (Results 1 – 25 of 25) sorted by relevance

/external/guava/guava-tests/test/com/google/common/math/
DBigDecimalMathTest.java22 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 …]
DBigIntegerMathTest.java33 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 …]
DMathTesting.java24 import static java.math.RoundingMode.HALF_DOWN;
51 ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
DDoubleMathTest.java34 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/
DBigDecimalMathTest.java22 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 …]
DBigIntegerMathTest.java33 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 …]
DMathTesting.java24 import static java.math.RoundingMode.HALF_DOWN;
51 ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
DDoubleMathTest.java34 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/
DToDoubleRounder.java53 case HALF_DOWN: in roundToDouble()
98 case HALF_DOWN: in roundToDouble()
141 case HALF_DOWN: in roundToDouble()
DIntMath.java132 case HALF_DOWN: in log2()
173 case HALF_DOWN: in log10()
281 case HALF_DOWN: in sqrt()
354 case HALF_DOWN: in divide()
DLongMath.java135 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()
DBigIntegerMath.java24 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()
DDoubleMath.java101 case HALF_DOWN: in roundIntermediate()
263 case HALF_DOWN: in log2()
/external/guava/android/guava/src/com/google/common/math/
DToDoubleRounder.java53 case HALF_DOWN: in roundToDouble()
98 case HALF_DOWN: in roundToDouble()
141 case HALF_DOWN: in roundToDouble()
DIntMath.java132 case HALF_DOWN: in log2()
173 case HALF_DOWN: in log10()
281 case HALF_DOWN: in sqrt()
354 case HALF_DOWN: in divide()
DLongMath.java135 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()
DBigIntegerMath.java24 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()
DDoubleMath.java101 case HALF_DOWN: in roundIntermediate()
263 case HALF_DOWN: in log2()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java123 mode = RoundingMode.HALF_DOWN; in getRoundingMode()
215 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
DDecimalFormatICU.java212 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/
DNumberFormatJDK.java159 } 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/
DDecimalQuantityTest.java547 {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/
DDecimalQuantityTest.java544 {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/
DNumberSkeletonImpl.java292 return RoundingMode.HALF_DOWN; in roundingMode()
396 case HALF_DOWN: in roundingMode()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberSkeletonImpl.java293 return RoundingMode.HALF_DOWN; in roundingMode()
397 case HALF_DOWN: in roundingMode()