Searched refs:roundingMode (Results 1 - 5 of 5) sorted by relevance

/openjdk7/jdk/src/share/classes/java/math/
H A DMathContext.java44 * <li>{@code roundingMode}:
75 * precision=0 roundingMode=HALF_UP
127 final RoundingMode roundingMode; field in class:MathContext
163 roundingMode = setRoundingMode;
193 if (!val.startsWith("roundingMode=", fence+1))
197 roundingMode = RoundingMode.valueOf(str);
220 * Returns the roundingMode setting.
232 * {@code roundingMode} setting
236 return roundingMode;
255 && mc.roundingMode
[all...]
H A DBigDecimal.java1362 * @param roundingMode rounding mode to apply.
1365 * {@code roundingMode==ROUND_UNNECESSARY} and
1368 * @throws IllegalArgumentException if {@code roundingMode} does not
1379 public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode) { argument
1385 if (roundingMode < ROUND_UP || roundingMode > ROUND_UNNECESSARY)
1400 scale, roundingMode, scale);
1408 * based on the passed in roundingMode. Also, if the remainder is zero and
1414 int scale, int roundingMode,
1425 if (roundingMode
1412 divideAndRound(long ldividend, BigInteger bdividend, long ldivisor, BigInteger bdivisor, int scale, int roundingMode, int preferredScale) argument
1512 divide(BigDecimal divisor, int scale, RoundingMode roundingMode) argument
1543 divide(BigDecimal divisor, int roundingMode) argument
1562 divide(BigDecimal divisor, RoundingMode roundingMode) argument
2334 setScale(int newScale, RoundingMode roundingMode) argument
2378 setScale(int newScale, int roundingMode) argument
[all...]
/openjdk7/jdk/src/share/classes/java/text/
H A DDigitList.java107 private RoundingMode roundingMode = RoundingMode.HALF_EVEN; field in class:DigitList
126 roundingMode = r;
428 switch(roundingMode) {
H A DDecimalFormat.java1299 bigDecimalResult = bigDecimalResult.divide(getBigDecimalMultiplier(), roundingMode);
1939 && roundingMode == other.roundingMode
2834 return roundingMode;
2840 * @param roundingMode The <code>RoundingMode</code> to be used
2842 * @exception NullPointerException if <code>roundingMode</code> is null.
2845 public void setRoundingMode(RoundingMode roundingMode) { argument
2846 if (roundingMode == null) {
2850 this.roundingMode = roundingMode;
3201 private RoundingMode roundingMode = RoundingMode.HALF_EVEN; field in class:DecimalFormat
[all...]
H A DNumberFormat.java731 * @exception NullPointerException if <code>roundingMode</code> is null
732 * @param roundingMode The <code>RoundingMode</code> to be used
736 public void setRoundingMode(RoundingMode roundingMode) { argument

Completed in 47 milliseconds