/libcore/luni/src/main/java/java/math/ |
RoundingMode.java | 69 HALF_DOWN(BigDecimal.ROUND_HALF_DOWN), 109 return HALF_DOWN;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
MathContextTest.java | 32 MathContext mcIntRm6hd = new MathContext(6, RoundingMode.HALF_DOWN); 33 MathContext mcStr6hd = new MathContext("precision=6 roundingMode=HALF_DOWN"); 48 RoundingMode.HALF_DOWN, mcIntRm6hd.getRoundingMode() ); 52 "precision=6 roundingMode=HALF_DOWN", mcIntRm6hd.toString() );
|
RoundingModeTest.java | 32 assertEquals("valueOf failed for ROUND_HALF_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_DOWN), RoundingMode.HALF_DOWN);
|
BigDecimalArithmeticTest.java | 289 MathContext mc = new MathContext(70, RoundingMode.HALF_DOWN); 324 MathContext mc = new MathContext(40, RoundingMode.HALF_DOWN); [all...] |
BigDecimalCompareTest.java | 63 RoundingMode rm = RoundingMode.HALF_DOWN;
|
BigDecimalTest.java | [all...] |
/external/guava/guava/src/com/google/common/math/ |
IntMath.java | 101 case HALF_DOWN: 142 case HALF_DOWN: 243 case HALF_DOWN: 316 case HALF_DOWN:
|
LongMath.java | 99 case HALF_DOWN: 141 case HALF_DOWN: 316 case HALF_DOWN: 382 case HALF_DOWN:
|
DoubleMath.java | 102 case HALF_DOWN: { 258 case HALF_DOWN:
|
BigIntegerMath.java | 83 case HALF_DOWN: 183 case HALF_DOWN: 226 case HALF_DOWN:
|
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/ |
BigIntegerMathTest.java | 27 import static java.math.RoundingMode.HALF_DOWN; 122 int result = BigIntegerMath.log2(x, HALF_DOWN); 131 // Relies on the correctness of log2(BigInteger, {HALF_UP,HALF_DOWN}). 138 assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); 144 // Relies on the correctness of log10(BigInteger, {HALF_UP,HALF_DOWN}). 148 // Relies on the correctness of sqrt(BigInteger, {HALF_UP,HALF_DOWN}).
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigDecimalTest.java | 124 // testing rounding Mode RoundingMode.HALF_DOWN 125 setScale2 = setScale1.setScale(3, RoundingMode.HALF_DOWN); 127 "the number 1234.5908 after setting scale to 3/RoundingMode.HALF_DOWN is wrong", 131 setScale2 = setScale1.setScale(1, RoundingMode.HALF_DOWN); 133 "the number 123.45908 after setting scale to 1/RoundingMode.HALF_DOWN is wrong", 136 RoundingMode.HALF_DOWN); 138 "the number -1234.5908 after setting scale to 0/RoundingMode.HALF_DOWN is wrong",
|
OldBigDecimalConstructorsTest.java | 90 mc = new MathContext(34, RoundingMode.HALF_DOWN); 177 mc = new MathContext(34, RoundingMode.HALF_DOWN); 237 mc = new MathContext(34, RoundingMode.HALF_DOWN); 346 mc = new MathContext(34, RoundingMode.HALF_DOWN); 497 mc = new MathContext(11, RoundingMode.HALF_DOWN); 551 mc = new MathContext(11, RoundingMode.HALF_DOWN); 623 mc = new MathContext(16, RoundingMode.HALF_DOWN); [all...] |
OldBigDecimalConvertTest.java | 158 MathContext mc = new MathContext(iPresition, RoundingMode.HALF_DOWN);
|
/external/guava/guava-tests/test/com/google/common/math/ |
BigIntegerMathTest.java | 30 import static java.math.RoundingMode.HALF_DOWN; 134 int result = BigIntegerMath.log2(x, HALF_DOWN); 143 // Relies on the correctness of log2(BigInteger, {HALF_UP,HALF_DOWN}). 150 assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); 226 int result = BigIntegerMath.log10(x, HALF_DOWN); 235 // Relies on the correctness of log10(BigInteger, {HALF_UP,HALF_DOWN}). 243 assertEquals(BigIntegerMath.log10(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); 331 BigInteger result = BigIntegerMath.sqrt(x, HALF_DOWN); 344 // Relies on the correctness of sqrt(BigInteger, {HALF_UP,HALF_DOWN}). 352 assertEquals(BigIntegerMath.sqrt(x, floorWasOdd ? HALF_UP : HALF_DOWN), halfEven) [all...] |
MathTesting.java | 24 import static java.math.RoundingMode.HALF_DOWN; 52 FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
DoubleMathTest.java | 32 import static java.math.RoundingMode.HALF_DOWN; 372 for (RoundingMode mode : asList(HALF_EVEN, HALF_UP, HALF_DOWN)) {
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
IntMath.java | 98 case HALF_DOWN: 195 case HALF_DOWN:
|
BigIntegerMath.java | 81 case HALF_DOWN:
|
LongMath.java | 94 case HALF_DOWN:
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
NumberFormatJDK.java | 157 } else if (jdkMode.equals(RoundingMode.HALF_DOWN)) { 263 mode = RoundingMode.HALF_DOWN;
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
NumberFormatICU.java | 121 mode = RoundingMode.HALF_DOWN; 213 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) {
|
DecimalFormatICU.java | 210 mode = RoundingMode.HALF_DOWN; 371 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) {
|
/libcore/ojluni/src/main/java/java/text/ |
DigitList.java | 457 case HALF_DOWN:
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
DecimalFormatTest.java | [all...] |