Home
last modified time | relevance | path

Searched refs:roundingMode (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DMathContext.java128 final RoundingMode roundingMode; field in MathContext
164 roundingMode = setRoundingMode; in MathContext()
198 roundingMode = RoundingMode.valueOf(str); in MathContext()
237 return roundingMode; in getRoundingMode()
254 && mc.roundingMode == this.roundingMode; // no need for .equals() in equals()
263 return this.precision + roundingMode.hashCode() * 59; in hashCode()
300 "roundingMode=" + roundingMode.toString(); in toString()
322 if (roundingMode == null) { in readObject()
DBigDecimal.java613 … rs = divideAndRound(rs, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal()
678 rb = divideAndRoundByTenPow(rb, drop, mc.roundingMode.oldMode); in BigDecimal()
692 … rs = divideAndRound(rs, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal()
1040 int mode = mc.roundingMode.oldMode; in BigDecimal()
1061 … compactVal = divideAndRound(compactVal, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal()
1145 int mode = mc.roundingMode.oldMode; in BigDecimal()
1211 … compactVal = divideAndRound(compactVal, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal()
1246 int mode = mc.roundingMode.oldMode; in BigDecimal()
1270 val = divideAndRound(val, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal()
1654 public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode) { in divide() argument
[all …]
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4309 return roundingMode; in getRoundingMode()
4345 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
4346 if (roundingMode == null) { in setRoundingMode()
4350 this.roundingMode = roundingMode; in setRoundingMode()
4353 icuDecimalFormat.setRoundingMode(convertRoundingMode(roundingMode)); in setRoundingMode()
4434 fields.put("roundingMode", roundingMode); in writeObject()
4587 RoundingMode roundingMode = in readObject() local
4589 if (convertRoundingMode(roundingMode) != icuDecimalFormat.getRoundingMode()) { in readObject()
4590 setRoundingMode(roundingMode); in readObject()
4890 private RoundingMode roundingMode = RoundingMode.HALF_EVEN; field in DecimalFormat
DNumberFormat.java961 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
/libcore/ojluni/annotations/hiddenapi/java/text/
DNumberFormat.java200 public void setRoundingMode(java.math.RoundingMode roundingMode) { in setRoundingMode() argument
/libcore/ojluni/annotations/sdk/nullability/java/text/
DNumberFormat.annotated.java128 public void setRoundingMode(@libcore.util.Nullable java.math.RoundingMode roundingMode) { throw new… in setRoundingMode() argument