Searched refs:roundingMode (Results 1 – 6 of 6) sorted by relevance
/libcore/ojluni/src/main/java/java/math/ |
D | MathContext.java | 127 final RoundingMode roundingMode; field in MathContext 163 roundingMode = setRoundingMode; in MathContext() 197 roundingMode = RoundingMode.valueOf(str); in MathContext() 236 return roundingMode; in getRoundingMode() 255 && mc.roundingMode == this.roundingMode; // no need for .equals() in equals() 264 return this.precision + roundingMode.hashCode() * 59; in hashCode() 301 "roundingMode=" + roundingMode.toString(); in toString() 320 if (roundingMode == null) { in readObject()
|
D | BigDecimal.java | 513 … rs = divideAndRound(rs, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal() 576 rb = divideAndRoundByTenPow(rb, drop, mc.roundingMode.oldMode); in BigDecimal() 590 … rs = divideAndRound(rs, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal() 944 int mode = mc.roundingMode.oldMode; in BigDecimal() 965 … compactVal = divideAndRound(compactVal, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal() 1043 int mode = mc.roundingMode.oldMode; in BigDecimal() 1111 … compactVal = divideAndRound(compactVal, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal() 1148 int mode = mc.roundingMode.oldMode; in BigDecimal() 1172 val = divideAndRound(val, LONG_TEN_POWERS_TABLE[drop], mc.roundingMode.oldMode); in BigDecimal() 1559 public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode) { in divide() argument [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 4124 return roundingMode; in getRoundingMode() 4160 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument 4161 if (roundingMode == null) { in setRoundingMode() 4165 this.roundingMode = roundingMode; in setRoundingMode() 4168 icuDecimalFormat.setRoundingMode(convertRoundingMode(roundingMode)); in setRoundingMode() 4249 fields.put("roundingMode", roundingMode); in writeObject() 4395 RoundingMode roundingMode = in readObject() local 4397 if (convertRoundingMode(roundingMode) != icuDecimalFormat.getRoundingMode()) { in readObject() 4398 setRoundingMode(roundingMode); in readObject() 4697 private RoundingMode roundingMode = RoundingMode.HALF_EVEN; field in DecimalFormat
|
D | NumberFormat.java | 821 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | NumberFormat.java | 200 public void setRoundingMode(java.math.RoundingMode roundingMode) { in setRoundingMode() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | NumberFormat.annotated.java | 128 public void setRoundingMode(@libcore.util.Nullable java.math.RoundingMode roundingMode) { throw new… in setRoundingMode() argument
|