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.java991 public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode) { in divide() argument
992 return divide(divisor, scale, RoundingMode.valueOf(roundingMode)); in divide()
1018 public BigDecimal divide(BigDecimal divisor, int scale, RoundingMode roundingMode) { in divide() argument
1020 if (roundingMode == null) { in divide()
1041 roundingMode ); in divide()
1048 roundingMode); in divide()
1056 roundingMode); in divide()
1071 return divideBigIntegers(scaledDividend, scaledDivisor, scale, roundingMode); in divide()
1074 …tegers(BigInteger scaledDividend, BigInteger scaledDivisor, int scale, RoundingMode roundingMode) { in divideBigIntegers() argument
1091 sign * (5 + compRem), roundingMode); in divideBigIntegers()
[all …]
/libcore/luni/src/main/java/java/text/
DDecimalFormat.java512 private transient RoundingMode roundingMode = RoundingMode.HALF_EVEN; field in DecimalFormat
953 setRoundingMode(roundingMode); in setMaximumFractionDigits()
1120 fields.put("roundingMode", roundingMode); in writeObject()
1189 return roundingMode; in getRoundingMode()
1196 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
1197 if (roundingMode == null) { in setRoundingMode()
1200 this.roundingMode = roundingMode; in setRoundingMode()
1205 ndf.setRoundingMode(roundingMode, roundingIncrement); in setRoundingMode()
DNumberFormat.java846 public void setRoundingMode(RoundingMode roundingMode) {
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java559 public void setRoundingMode(RoundingMode roundingMode, double roundingIncrement) { in setRoundingMode() argument
561 switch (roundingMode) { in setRoundingMode()
639 … private static native void setRoundingMode(long addr, int roundingMode, double roundingIncrement); in setRoundingMode() argument