Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/math/
DMathContext.java69 private final RoundingMode roundingMode; field in MathContext
101 public MathContext(int precision, RoundingMode roundingMode) { in MathContext() argument
103 this.roundingMode = roundingMode; in MathContext()
138 this.roundingMode = RoundingMode.valueOf(s.substring(roundingModeStart)); in MathContext()
151 if (roundingMode == null) { in checkValid()
186 return roundingMode; in getRoundingMode()
202 .getRoundingMode() == roundingMode)); in equals()
213 return ((precision << 3) | roundingMode.ordinal()); in hashCode()
229 return "precision=" + precision + " roundingMode=" + roundingMode; in toString()
DBigDecimal.java997 public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode) { in divide() argument
998 return divide(divisor, scale, RoundingMode.valueOf(roundingMode)); in divide()
1024 public BigDecimal divide(BigDecimal divisor, int scale, RoundingMode roundingMode) { in divide() argument
1026 if (roundingMode == null) { in divide()
1049 roundingMode); in divide()
1057 roundingMode); in divide()
1065 roundingMode); in divide()
1080 return divideBigIntegers(scaledDividend, scaledDivisor, scale, roundingMode); in divide()
1083 …tegers(BigInteger scaledDividend, BigInteger scaledDivisor, int scale, RoundingMode roundingMode) { in divideBigIntegers() argument
1100 sign * (5 + compRem), roundingMode); in divideBigIntegers()
[all …]
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4124 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
DNumberFormat.java821 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