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

1 2 3

  /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/swiftshader/third_party/LLVM/include/llvm/ADT/
APFloat.h 150 enum roundingMode {
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, bool *) const
    [all...]
  /external/llvm/include/llvm/ADT/
APFloat.h 160 enum roundingMode {
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, bool *) const
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/util/
ShortDuration.java 30 import java.math.RoundingMode;
61 return ofPicos(toLong(picos, RoundingMode.HALF_UP));
107 return to(unit, RoundingMode.HALF_UP);
110 public abstract long to(TimeUnit unit, RoundingMode roundingMode);
137 * multiplicand}, rounded according to {@code roundingMode} if necessary.
142 public abstract ShortDuration times(BigDecimal multiplicand, RoundingMode roundingMode);
146 * value {@code divisor}, rounded according to {@code roundingMode} if necessary.
151 public abstract ShortDuration dividedBy(long divisor, RoundingMode 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/android_icu4j/src/main/java/android/icu/math/
MathContext.java 52 * <li><code>roundingMode</code>:
287 int roundingMode;
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/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
MathContext.java 51 * <li><code>roundingMode</code>:
298 int roundingMode;
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/
MathContext.java 51 * <li><code>roundingMode</code>:
298 int roundingMode;
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/jdkadapter/
NumberFormatICU.java 11 import java.math.RoundingMode;
109 public RoundingMode getRoundingMode() {
111 RoundingMode mode = RoundingMode.UP;
114 mode = RoundingMode.CEILING;
117 mode = RoundingMode.DOWN;
120 mode = RoundingMode.FLOOR;
123 mode = RoundingMode.HALF_DOWN;
126 mode = RoundingMode.HALF_EVEN;
129 mode = RoundingMode.HALF_UP
    [all...]
DecimalFormatICU.java 11 import java.math.RoundingMode;
198 public RoundingMode getRoundingMode() {
200 RoundingMode mode = RoundingMode.UP;
203 mode = RoundingMode.CEILING;
206 mode = RoundingMode.DOWN;
209 mode = RoundingMode.FLOOR;
212 mode = RoundingMode.HALF_DOWN;
215 mode = RoundingMode.HALF_EVEN;
218 mode = RoundingMode.HALF_UP
    [all...]
  /device/linaro/bootloader/edk2/ArmPkg/Library/ArmSoftFloatLib/bits32/
softfloat.c 210 int8 roundingMode;
215 roundingMode = float_rounding_mode;
216 roundNearestEven = roundingMode == float_round_nearest_even;
219 if ( roundingMode == float_round_to_zero ) {
225 if ( roundingMode == float_round_up ) roundIncrement = 0;
228 if ( roundingMode == float_round_down ) roundIncrement = 0;
422 int8 roundingMode;
425 roundingMode = float_rounding_mode;
426 roundNearestEven = ( roundingMode == float_round_nearest_even );
429 if ( roundingMode == float_round_to_zero ) {
    [all...]
  /device/linaro/bootloader/edk2/StdLib/LibC/Softfloat/bits32/
softfloat.c 211 int8 roundingMode;
216 roundingMode = float_rounding_mode;
217 roundNearestEven = roundingMode == float_round_nearest_even;
220 if ( roundingMode == float_round_to_zero ) {
226 if ( roundingMode == float_round_up ) roundIncrement = 0;
229 if ( roundingMode == float_round_down ) roundIncrement = 0;
423 int8 roundingMode;
426 roundingMode = float_rounding_mode;
427 roundNearestEven = ( roundingMode == float_round_nearest_even );
430 if ( roundingMode == float_round_to_zero ) {
    [all...]
  /device/linaro/bootloader/edk2/StdLib/LibC/Softfloat/bits64/
softfloat.c 124 int8 roundingMode;
129 roundingMode = float_rounding_mode;
130 roundNearestEven = ( roundingMode == float_round_nearest_even );
133 if ( roundingMode == float_round_to_zero ) {
139 if ( roundingMode == float_round_up ) roundIncrement = 0;
142 if ( roundingMode == float_round_down ) roundIncrement = 0;
175 int8 roundingMode;
179 roundingMode = float_rounding_mode;
180 roundNearestEven = ( roundingMode == float_round_nearest_even );
183 if ( roundingMode == float_round_to_zero ) {
    [all...]
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
NumberFormatJDK.java 11 import java.math.RoundingMode;
150 RoundingMode jdkMode = fJdkNfmt.getRoundingMode();
153 if (jdkMode.equals(RoundingMode.CEILING)) {
155 } else if (jdkMode.equals(RoundingMode.DOWN)) {
157 } else if (jdkMode.equals(RoundingMode.FLOOR)) {
159 } else if (jdkMode.equals(RoundingMode.HALF_DOWN)) {
161 } else if (jdkMode.equals(RoundingMode.HALF_EVEN)) {
163 } else if (jdkMode.equals(RoundingMode.HALF_UP)) {
165 } else if (jdkMode.equals(RoundingMode.UNNECESSARY)) {
167 } else if (jdkMode.equals(RoundingMode.UP))
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/text/
RuleBasedNumberFormat.java 601 private int roundingMode = BigDecimal.ROUND_UNNECESSARY;
    [all...]
DecimalFormat.java     [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
RuleBasedNumberFormat.java 604 private int roundingMode = BigDecimal.ROUND_UNNECESSARY;
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Support/
APFloat.cpp 1116 APFloat::handleOverflow(roundingMode rounding_mode)
1142 APFloat::roundAwayFromZero(roundingMode rounding_mode,
1181 APFloat::normalize(roundingMode rounding_mode,
    [all...]
  /device/linaro/bootloader/edk2/StdLib/LibC/Softfloat/
timesoftfloat.c     [all...]
  /libcore/ojluni/src/main/java/java/text/
DecimalFormat.java 48 import java.math.RoundingMode;
297 * {@link java.math.RoundingMode} for formatting. By default, it uses
298 * {@link java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}.
577 * mode being set to RoundingMode.UNNECESSARY
609 * mode being set to RoundingMode.UNNECESSARY
630 * mode being set to RoundingMode.UNNECESSARY
652 * mode being set to RoundingMode.UNNECESSARY
672 * mode being set to RoundingMode.UNNECESSARY
698 * mode being set to RoundingMode.UNNECESSAR
    [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/llvm/lib/Support/
APFloat.cpp     [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/icu/icu4c/source/test/intltest/
numberformattesttuple.h 110 DecimalFormat::ERoundingMode roundingMode;

Completed in 1559 milliseconds

1 2 3