Searched refs:FLOOR (Results 1 - 13 of 13) sorted by relevance

/libcore/luni/src/main/java/java/math/
H A DRoundingMode.java57 FLOOR(BigDecimal.ROUND_FLOOR), enum constant in enum:RoundingMode
107 return FLOOR;
H A DBigDecimal.java66 * @see RoundingMode#FLOOR
2776 case FLOOR:
/libcore/luni/src/test/java/libcore/java/math/
H A DOldBigDecimalCompareTest.java41 mc = new MathContext(34, RoundingMode.FLOOR);
57 MathContext mc = new MathContext(37, RoundingMode.FLOOR);
H A DOldBigDecimalArithmeticTest.java32 mc = new MathContext(17, RoundingMode.FLOOR);
57 mc = new MathContext(17, RoundingMode.FLOOR);
80 mc = new MathContext(17, RoundingMode.FLOOR);
128 mc = new MathContext(7, RoundingMode.FLOOR);
135 mc = new MathContext(4, RoundingMode.FLOOR);
158 mc = new MathContext(0, RoundingMode.FLOOR);
167 mc = new MathContext(0, RoundingMode.FLOOR);
180 // mc = new MathContext(3, RoundingMode.FLOOR);
193 mc = new MathContext(17, RoundingMode.FLOOR);
220 mc = new MathContext(17, RoundingMode.FLOOR);
[all...]
H A DBigDecimalTest.java64 BigDecimal rounded = bigDecimal.round(new MathContext(2, RoundingMode.FLOOR));
H A DOldBigDecimalConstructorsTest.java70 mc = new MathContext(34, RoundingMode.FLOOR);
157 mc = new MathContext(34, RoundingMode.FLOOR);
217 mc = new MathContext(34, RoundingMode.FLOOR);
257 mc = new MathContext(28, RoundingMode.FLOOR);
268 mc = new MathContext(17, RoundingMode.FLOOR);
326 mc = new MathContext(34, RoundingMode.FLOOR);
465 mc = new MathContext(8, RoundingMode.FLOOR);
603 mc = new MathContext(12, RoundingMode.FLOOR);
708 mc = new MathContext(7, RoundingMode.FLOOR);
H A DOldBigDecimalTest.java113 // testing rounding Mode RoundingMode.FLOOR
114 setScale2 = setScale1.setScale(1, RoundingMode.FLOOR);
116 "the number 1234.5908 after setting scale to 1/RoundingMode.FLOOR is wrong",
118 setScale2 = setNeg.setScale(1, RoundingMode.FLOOR);
120 "the number -1234.5908 after setting scale to 1/RoundingMode.FLOOR is wrong",
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DRoundingModeTest.java31 assertEquals("valueOf failed for ROUND_FLOOR", RoundingMode.valueOf(BigDecimal.ROUND_FLOOR), RoundingMode.FLOOR);
H A DBigDecimalCompareTest.java374 RoundingMode rm = RoundingMode.FLOOR;
434 RoundingMode rm = RoundingMode.FLOOR;
H A DBigDecimalArithmeticTest.java96 MathContext mc = new MathContext(5, RoundingMode.FLOOR);
1085 RoundingMode rm = RoundingMode.FLOOR;
1219 RoundingMode rm = RoundingMode.FLOOR;
/libcore/ojluni/src/main/java/java/text/
H A DDigitList.java445 case FLOOR:
H A DDecimalFormat.java1368 case FLOOR:
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DDecimalFormatTest.java2218 // set RoundingMode.FLOOR of this DecimalFormat and test its
2220 decimalFormat.setRoundingMode(RoundingMode.FLOOR);
2222 assertEquals("Incorrect RoundingMode behavior: RoundingMode.FLOOR", "11", result);
2225 assertEquals("Incorrect RoundingMode behavior: RoundingMode.FLOOR", "-12", result);
2228 assertEquals("Incorrect RoundingMode behavior: RoundingMode.FLOOR", "0", result);
2330 // set RoundingMode.FLOOR of this DecimalFormat and test its
2332 decimalFormat.setRoundingMode(RoundingMode.FLOOR);
2334 assertEquals("Incorrect RoundingMode behavior: RoundingMode.FLOOR", "11.565", result);
2337 assertEquals("Incorrect RoundingMode behavior: RoundingMode.FLOOR", "-11.566", result);
2340 assertEquals("Incorrect RoundingMode behavior: RoundingMode.FLOOR", "
[all...]

Completed in 228 milliseconds