HomeSort by relevance Sort by last modified time
    Searched refs:roundingMode (Results 1 - 25 of 44) sorted by null

1 2

  /libcore/luni/src/main/java/java/math/
MathContext.java 35 * {@link RoundingMode#HALF_EVEN} rounding.
37 public static final MathContext DECIMAL128 = new MathContext(34, RoundingMode.HALF_EVEN);
41 * precision format: 7 digit precision and {@link RoundingMode#HALF_EVEN}
44 public static final MathContext DECIMAL32 = new MathContext(7, RoundingMode.HALF_EVEN);
48 * precision format: 16 digit precision and {@link RoundingMode#HALF_EVEN}
51 public static final MathContext DECIMAL64 = new MathContext(16, RoundingMode.HALF_EVEN);
55 * {@link RoundingMode#HALF_UP} rounding.
57 public static final MathContext UNLIMITED = new MathContext(0, RoundingMode.HALF_UP);
66 * A {@code RoundingMode} object which specifies the algorithm to be used
69 private final RoundingMode roundingMode
    [all...]
BigDecimal.java 41 * @see RoundingMode#UP
48 * @see RoundingMode#DOWN
57 * @see RoundingMode#CEILING
66 * @see RoundingMode#FLOOR
74 * @see RoundingMode#HALF_UP
82 * @see RoundingMode#HALF_DOWN
90 * @see RoundingMode#HALF_EVEN
99 * @see RoundingMode#UNNECESSARY
369 * if {@code mc.precision > 0} and {@code mc.roundingMode ==
407 * if {@code mc.precision > 0} and {@code mc.roundingMode =
    [all...]
  /external/llvm/include/llvm/ADT/
APFloat.h 155 enum roundingMode {
288 opStatus add(const APFloat &, roundingMode);
289 opStatus subtract(const APFloat &, roundingMode);
290 opStatus multiply(const APFloat &, roundingMode);
291 opStatus divide(const APFloat &, roundingMode);
295 opStatus mod(const APFloat &, roundingMode);
296 opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
297 opStatus roundToIntegral(roundingMode);
354 opStatus convert(const fltSemantics &, roundingMode, bool *);
355 opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode,
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/util/
BigReal.java 24 import java.math.RoundingMode;
53 private RoundingMode roundingMode = RoundingMode.HALF_UP;
193 * The default is {@code RoundingMode.HALF_UP}
197 public RoundingMode getRoundingMode() {
198 return roundingMode;
203 * @param roundingMode rounding mode for decimal divisions
206 public void setRoundingMode(RoundingMode roundingMode) {
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
MathContext.java 49 * <li><code>roundingMode</code>:
296 int roundingMode;
329 * roundingMode=ROUND_HALF_UP</code>.
390 * The roundingMode setting is set to its default value
415 * precision, form, lostDigits, and roundingMode setting.
429 * @param setroundingmode The <code>int</code> roundingMode setting
456 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode);
460 roundingMode=setroundingmode;
506 * Returns the roundingMode setting.
517 * @return an <code>int</code> which is the value of the roundingMode
    [all...]
BigDecimal.java 133 * form=SCIENTIFIC, lostDigits=false, roundingMode=ROUND_HALF_UP</code>) perform general-purpose floating point
138 * form=PLAIN, lostDigits=false, roundingMode=ROUND_HALF_UP</code>; these settings perform fixed point arithmetic with
    [all...]
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
NumberFormatICU.java 9 import java.math.RoundingMode;
107 public RoundingMode getRoundingMode() {
109 RoundingMode mode = RoundingMode.UP;
112 mode = RoundingMode.CEILING;
115 mode = RoundingMode.DOWN;
118 mode = RoundingMode.FLOOR;
121 mode = RoundingMode.HALF_DOWN;
124 mode = RoundingMode.HALF_EVEN;
127 mode = RoundingMode.HALF_UP
    [all...]
DecimalFormatICU.java 9 import java.math.RoundingMode;
196 public RoundingMode getRoundingMode() {
198 RoundingMode mode = RoundingMode.UP;
201 mode = RoundingMode.CEILING;
204 mode = RoundingMode.DOWN;
207 mode = RoundingMode.FLOOR;
210 mode = RoundingMode.HALF_DOWN;
213 mode = RoundingMode.HALF_EVEN;
216 mode = RoundingMode.HALF_UP
    [all...]
  /libcore/luni/src/main/java/java/text/
DecimalFormat.java 26 import java.math.RoundingMode;
512 private transient RoundingMode roundingMode = RoundingMode.HALF_EVEN;
    [all...]
NumberFormat.java 26 import java.math.RoundingMode;
839 * Returns the {@code RoundingMode} used by this {@code NumberFormat}. The default
844 public RoundingMode getRoundingMode() {
849 * Sets the {@code RoundingMode} used by this {@code NumberFormat}. The default
    [all...]
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
NumberFormatJDK.java 9 import java.math.RoundingMode;
148 RoundingMode jdkMode = fJdkNfmt.getRoundingMode();
151 if (jdkMode.equals(RoundingMode.CEILING)) {
153 } else if (jdkMode.equals(RoundingMode.DOWN)) {
155 } else if (jdkMode.equals(RoundingMode.FLOOR)) {
157 } else if (jdkMode.equals(RoundingMode.HALF_DOWN)) {
159 } else if (jdkMode.equals(RoundingMode.HALF_EVEN)) {
161 } else if (jdkMode.equals(RoundingMode.HALF_UP)) {
163 } else if (jdkMode.equals(RoundingMode.UNNECESSARY)) {
165 } else if (jdkMode.equals(RoundingMode.UP))
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
BigMatrixImpl.java 85 private int roundingMode = BigDecimal.ROUND_HALF_UP;
538 return roundingMode;
544 * @param roundingMode rounding mode for decimal divisions
546 public void setRoundingMode(int roundingMode) {
547 this.roundingMode = roundingMode;
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
BigFraction.java 550 * @param roundingMode
554 * if <tt>roundingMode</tt> does not represent a valid rounding
558 public BigDecimal bigDecimalValue(final int roundingMode) {
559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode);
572 * @param roundingMode
577 public BigDecimal bigDecimalValue(final int scale, final int roundingMode) {
578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode);
    [all...]
  /external/llvm/lib/Support/
APFloat.cpp     [all...]
  /libcore/luni/src/main/java/libcore/icu/
NativeDecimalFormat.java 21 import java.math.RoundingMode;
559 public void setRoundingMode(RoundingMode roundingMode, double roundingIncrement) {
561 switch (roundingMode) {
639 private static native void setRoundingMode(long addr, int roundingMode, double roundingIncrement);
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DecimalFormat.java     [all...]
NumberFormat.java     [all...]
  /external/icu/icu4c/source/test/cintltst/
cnmdptst.c     [all...]
  /external/icu/icu4c/source/i18n/unicode/
decimfmt.h     [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineAddSub.cpp 254 enum APFloat::roundingMode RndMode = APFloat::rmNearestTiesToEven;
275 enum APFloat::roundingMode RndMode = APFloat::rmNearestTiesToEven;
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
NumberFormatTest.java     [all...]
  /external/llvm/lib/Analysis/
ConstantFolding.cpp     [all...]
  /external/icu/icu4c/source/i18n/
decimfmt.cpp     [all...]
  /external/llvm/unittests/ADT/
APFloatTest.cpp 458 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven;
556 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven;
    [all...]
  /prebuilts/sdk/10/
android.jar 

Completed in 4145 milliseconds

1 2