Home
last modified time | relevance | path

Searched refs:roundingMode (Results 1 – 5 of 5) 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/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
/libcore/ojluni/src/main/java/java/text/
DNumberFormat.java821 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument