Searched defs:roundingMode (Results 1 - 25 of 33) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
H A DBigReal.java53 private RoundingMode roundingMode = RoundingMode.HALF_UP; field in class:BigReal
198 return roundingMode;
203 * @param roundingMode rounding mode for decimal divisions
206 public void setRoundingMode(RoundingMode roundingMode) { argument
207 this.roundingMode = roundingMode;
241 return new BigReal(d.divide(a.d, scale, roundingMode));
/external/icu/android_icu4j/src/main/java/android/icu/math/
H A DMathContext.java52 * <li><code>roundingMode</code>:
287 int roundingMode; field in class:MathContext
320 * roundingMode=ROUND_HALF_UP</code>.
378 * The roundingMode setting is set to its default value
402 * precision, form, lostDigits, and roundingMode setting.
416 * @param setroundingmode The <code>int</code> roundingMode setting
442 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode);
446 roundingMode=setroundingmode;
489 * Returns the roundingMode setting.
500 * @return an <code>int</code> which is the value of the roundingMode
[all...]
/external/caliper/caliper/src/main/java/com/google/caliper/util/
H A DShortDuration.java110 public abstract long to(TimeUnit unit, RoundingMode roundingMode); argument
137 * multiplicand}, rounded according to {@code roundingMode} if necessary.
142 public abstract ShortDuration times(BigDecimal multiplicand, RoundingMode roundingMode); argument
146 * value {@code divisor}, rounded according to {@code roundingMode} if necessary.
151 public abstract ShortDuration dividedBy(long divisor, RoundingMode roundingMode); argument
155 * divisor}, rounded according to {@code roundingMode} if necessary.
160 public abstract ShortDuration dividedBy(BigDecimal divisor, RoundingMode roundingMode); argument
165 @Override public long to(TimeUnit unit, RoundingMode roundingMode) {
178 @Override public ShortDuration times(BigDecimal multiplicand, RoundingMode roundingMode) {
181 @Override public ShortDuration dividedBy(long divisor, RoundingMode roundingMode) {
214 to(TimeUnit unit, RoundingMode roundingMode) argument
237 times(BigDecimal multiplicand, RoundingMode roundingMode) argument
242 dividedBy(long divisor, RoundingMode roundingMode) argument
246 dividedBy(BigDecimal divisor, RoundingMode roundingMode) argument
344 toLong(BigDecimal bd, RoundingMode roundingMode) argument
[all...]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
H A DMathContext.java51 * <li><code>roundingMode</code>:
298 int roundingMode; field in class:MathContext
331 * roundingMode=ROUND_HALF_UP</code>.
392 * The roundingMode setting is set to its default value
417 * precision, form, lostDigits, and roundingMode setting.
431 * @param setroundingmode The <code>int</code> roundingMode setting
458 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode);
462 roundingMode=setroundingmode;
508 * Returns the roundingMode setting.
519 * @return an <code>int</code> which is the value of the roundingMode
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
H A DMathContext.java51 * <li><code>roundingMode</code>:
298 int roundingMode; field in class:MathContext
331 * roundingMode=ROUND_HALF_UP</code>.
392 * The roundingMode setting is set to its default value
417 * precision, form, lostDigits, and roundingMode setting.
431 * @param setroundingmode The <code>int</code> roundingMode setting
458 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode);
462 roundingMode=setroundingmode;
508 * Returns the roundingMode setting.
519 * @return an <code>int</code> which is the value of the roundingMode
[all...]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
H A DNumberFormatJDK.java252 public void setRoundingMode(int roundingMode) { argument
254 switch (roundingMode) {
281 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode);
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
H A DNumberFormatICU.java208 public void setRoundingMode(RoundingMode roundingMode) { argument
209 if (roundingMode.equals(RoundingMode.CEILING)) {
211 } else if (roundingMode.equals(RoundingMode.DOWN)) {
213 } else if (roundingMode.equals(RoundingMode.FLOOR)) {
215 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) {
217 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) {
219 } else if (roundingMode.equals(RoundingMode.HALF_UP)) {
221 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) {
223 } else if (roundingMode.equals(RoundingMode.UP)) {
H A DDecimalFormatICU.java366 public void setRoundingMode(RoundingMode roundingMode) { argument
367 if (roundingMode.equals(RoundingMode.CEILING)) {
369 } else if (roundingMode.equals(RoundingMode.DOWN)) {
371 } else if (roundingMode.equals(RoundingMode.FLOOR)) {
373 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) {
375 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) {
377 } else if (roundingMode.equals(RoundingMode.HALF_UP)) {
379 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) {
381 } else if (roundingMode.equals(RoundingMode.UP)) {
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
H A DBigFraction.java550 * @param roundingMode
554 * if <tt>roundingMode</tt> does not represent a valid rounding
558 public BigDecimal bigDecimalValue(final int roundingMode) { argument
559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode);
572 * @param roundingMode
577 public BigDecimal bigDecimalValue(final int scale, final int roundingMode) { argument
578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode);
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
H A DBigMatrixImpl.java85 private int roundingMode = BigDecimal.ROUND_HALF_UP; field in class:BigMatrixImpl
538 return roundingMode;
544 * @param roundingMode rounding mode for decimal divisions
546 public void setRoundingMode(int roundingMode) { argument
547 this.roundingMode = roundingMode;
1185 bpCol[j] = bpCol[j].divide(luDiag, scale, roundingMode);
1291 luRow[col] = luRow[col].divide(luDiag, scale, roundingMode);
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DAPFloat.h150 enum roundingMode { enum in class:llvm::APFloat
268 opStatus add(const APFloat &, roundingMode);
269 opStatus subtract(const APFloat &, roundingMode);
270 opStatus multiply(const APFloat &, roundingMode);
271 opStatus divide(const APFloat &, roundingMode);
275 opStatus mod(const APFloat &, roundingMode);
276 opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
284 opStatus convert(const fltSemantics &, roundingMode, bool *);
286 roundingMode, bool *) const;
287 opStatus convertToInteger(APSInt&, roundingMode, boo
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/text/
H A DRuleBasedNumberFormat.java601 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in class:RuleBasedNumberFormat
971 out.writeInt(this.roundingMode);
991 roundingMode = in.readInt();
1506 return roundingMode;
1513 * @param roundingMode A rounding mode, between <code>BigDecimal.ROUND_UP</code> and
1515 * @exception IllegalArgumentException if <code>roundingMode</code> is unrecognized.
1520 public void setRoundingMode(int roundingMode) { argument
1521 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) {
1522 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode);
[all...]
H A DNumberFormat.java1212 * @param roundingMode A rounding mode, between
1217 public void setRoundingMode(int roundingMode) { argument
H A DDecimalFormat.java811 // * round(number / roundingDouble, roundingMode, isNegative);
813 number, roundingDouble, roundingDoubleReciprocal, roundingMode,
906 // ROUND_HALF_EVEN behavior of DigitList. For example, if number = 0.003016 and roundingMode =
908 if (useExponentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_HALF_EVEN) {
919 number = DecimalFormat.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative);
1125 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) {
1158 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) {
1183 number = number.divide(actualRoundingIncrement, 0, roundingMode).multiply(actualRoundingIncrement);
1190 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) {
1213 number = number.divide(actualRoundingIncrementICU, 0, roundingMode)
3505 setRoundingMode(int roundingMode) argument
5748 private int roundingMode = BigDecimal.ROUND_HALF_EVEN; field in class:DecimalFormat
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dcnmdptst.c1070 static void roundingTest2(UNumberFormat* nf, double x, int32_t roundingMode, const char* expected) argument
1078 unum_setAttribute(nf, UNUM_ROUNDING_MODE, roundingMode);
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
H A DNumberFormat.java1095 * @param roundingMode A rounding mode, between
1101 public void setRoundingMode(int roundingMode) { argument
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DRuleBasedNumberFormat.java604 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in class:RuleBasedNumberFormat
985 out.writeInt(this.roundingMode);
1005 roundingMode = in.readInt();
1543 return roundingMode;
1550 * @param roundingMode A rounding mode, between <code>BigDecimal.ROUND_UP</code> and
1552 * @exception IllegalArgumentException if <code>roundingMode</code> is unrecognized.
1558 public void setRoundingMode(int roundingMode) { argument
1559 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) {
1560 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode);
[all...]
H A DNumberFormat.java1300 * @param roundingMode A rounding mode, between
1306 public void setRoundingMode(int roundingMode) { argument
H A DDecimalFormat.java816 // * round(number / roundingDouble, roundingMode, isNegative);
818 number, roundingDouble, roundingDoubleReciprocal, roundingMode,
911 // ROUND_HALF_EVEN behavior of DigitList. For example, if number = 0.003016 and roundingMode =
913 if (useExponentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_HALF_EVEN) {
924 number = DecimalFormat.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative);
1131 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) {
1166 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) {
1193 number = number.divide(actualRoundingIncrement, 0, roundingMode).multiply(actualRoundingIncrement);
1200 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) {
1225 number = number.divide(actualRoundingIncrementICU, 0, roundingMode)
3537 setRoundingMode(int roundingMode) argument
5844 private int roundingMode = BigDecimal.ROUND_HALF_EVEN; field in class:DecimalFormat
[all...]
/external/llvm/include/llvm/ADT/
H A DAPFloat.h160 enum roundingMode { enum in class:llvm::APFloat
297 opStatus add(const APFloat &, roundingMode);
298 opStatus subtract(const APFloat &, roundingMode);
299 opStatus multiply(const APFloat &, roundingMode);
300 opStatus divide(const APFloat &, roundingMode);
305 opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
306 opStatus roundToIntegral(roundingMode);
363 opStatus convert(const fltSemantics &, roundingMode, bool *);
364 opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode,
366 opStatus convertToInteger(APSInt &, roundingMode, boo
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
H A DNumberFormatTestData.java102 public Integer roundingMode = null; field in class:NumberFormatTestData
206 "roundingMode",
342 roundingMode = fromString(roundingModeMap, value);
/external/icu/icu4c/source/test/intltest/
H A Dnumberformattesttuple.h110 DecimalFormat::ERoundingMode roundingMode; member in class:NumberFormatTestTuple
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberFormatTestData.java101 public Integer roundingMode = null; field in class:NumberFormatTestData
205 "roundingMode",
341 roundingMode = fromString(roundingModeMap, value);
/external/icu/icu4c/source/i18n/
H A Ddecimfmt.cpp2501 * @param roundingMode A rounding mode
2506 void DecimalFormat::setRoundingMode(ERoundingMode roundingMode) { argument
2507 fImpl->setRoundingMode(roundingMode);
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 565 milliseconds

12