/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | RoundingUtils.java | 61 int roundingMode, in getRoundingDirection() argument 63 switch (roundingMode) { in getRoundingDirection() 129 public static boolean roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument 130 switch (roundingMode) { in roundsAtMidpoint() 175 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOrUnlimited() local 176 if (roundingMode == null) in getMathContextOrUnlimited() 177 roundingMode = RoundingMode.HALF_EVEN; in getMathContextOrUnlimited() 178 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited() 195 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOr34Digits() local 196 if (roundingMode == null) in getMathContextOr34Digits() [all …]
|
D | MacroProps.java | 24 public RoundingMode roundingMode; field in MacroProps 55 if (roundingMode == null) in fallback() 56 roundingMode = fallback.roundingMode; in fallback() 91 roundingMode, in hashCode() 120 && Objects.equals(roundingMode, other.roundingMode) in equals()
|
D | DecimalFormatProperties.java | 126 private transient RoundingMode roundingMode; field in DecimalFormatProperties 198 roundingMode = null; in _clear() 244 roundingMode = other.roundingMode; in _copyFrom() 291 eq = eq && _equalsHelper(roundingMode, other.roundingMode); in _equals() 354 hashCode ^= _hashCodeHelper(roundingMode); in _hashCode() 571 return roundingMode; in getRoundingMode() 1308 public DecimalFormatProperties setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument 1309 this.roundingMode = roundingMode; in setRoundingMode()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | RoundingUtils.java | 63 int roundingMode, in getRoundingDirection() argument 65 switch (roundingMode) { in getRoundingDirection() 131 public static boolean roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument 132 switch (roundingMode) { in roundsAtMidpoint() 177 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOrUnlimited() local 178 if (roundingMode == null) in getMathContextOrUnlimited() 179 roundingMode = RoundingMode.HALF_EVEN; in getMathContextOrUnlimited() 180 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited() 197 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOr34Digits() local 198 if (roundingMode == null) in getMathContextOr34Digits() [all …]
|
D | MacroProps.java | 28 public RoundingMode roundingMode; field in MacroProps 57 if (roundingMode == null) in fallback() 58 roundingMode = fallback.roundingMode; in fallback() 89 roundingMode, in hashCode() 116 && Objects.equals(roundingMode, other.roundingMode) in equals()
|
D | DecimalFormatProperties.java | 131 private transient RoundingMode roundingMode; field in DecimalFormatProperties 203 roundingMode = null; in _clear() 249 roundingMode = other.roundingMode; in _copyFrom() 296 eq = eq && _equalsHelper(roundingMode, other.roundingMode); in _equals() 359 hashCode ^= _hashCodeHelper(roundingMode); in _hashCode() 576 return roundingMode; in getRoundingMode() 1313 public DecimalFormatProperties setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument 1314 this.roundingMode = roundingMode; in setRoundingMode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APFloat.h | 185 enum roundingMode { enum 270 opStatus add(const IEEEFloat &, roundingMode); 271 opStatus subtract(const IEEEFloat &, roundingMode); 272 opStatus multiply(const IEEEFloat &, roundingMode); 273 opStatus divide(const IEEEFloat &, roundingMode); 278 opStatus fusedMultiplyAdd(const IEEEFloat &, const IEEEFloat &, roundingMode); 279 opStatus roundToIntegral(roundingMode); 295 opStatus convert(const fltSemantics &, roundingMode, bool *); 297 roundingMode, bool *) const; 298 opStatus convertFromAPInt(const APInt &, bool, roundingMode); [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APFloat.h | 161 enum roundingMode { enum 245 opStatus add(const IEEEFloat &, roundingMode); 246 opStatus subtract(const IEEEFloat &, roundingMode); 247 opStatus multiply(const IEEEFloat &, roundingMode); 248 opStatus divide(const IEEEFloat &, roundingMode); 253 opStatus fusedMultiplyAdd(const IEEEFloat &, const IEEEFloat &, roundingMode); 254 opStatus roundToIntegral(roundingMode); 311 opStatus convert(const fltSemantics &, roundingMode, bool *); 312 opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode, 314 opStatus convertToInteger(APSInt &, roundingMode, bool *) const; [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_roundingutils.h | 45 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument 47 switch (roundingMode) { in getRoundingDirection() 121 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument 122 switch (roundingMode) { in roundsAtMidpoint() 152 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
|
D | number_mapper.cpp | 105 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew() local 156 precision = precision.withMode(roundingMode); in oldToNew() 235 macros.precision = Precision::unlimited().withMode(roundingMode); in oldToNew() 238 … macros.precision = Precision::constructSignificant(1, maxFrac_ + 1).withMode(roundingMode); in oldToNew() 248 … macros.precision = Precision::constructSignificant(minSig_, maxSig_).withMode(roundingMode); in oldToNew() 280 exportedProperties->roundingMode = roundingMode; in oldToNew()
|
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | NumberFormatICU.java | 208 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument 209 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode() 211 } else if (roundingMode.equals(RoundingMode.DOWN)) { in setRoundingMode() 213 } else if (roundingMode.equals(RoundingMode.FLOOR)) { in setRoundingMode() 215 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode() 217 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { in setRoundingMode() 219 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { in setRoundingMode() 221 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { in setRoundingMode() 223 } else if (roundingMode.equals(RoundingMode.UP)) { in setRoundingMode()
|
D | DecimalFormatICU.java | 366 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument 367 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode() 369 } else if (roundingMode.equals(RoundingMode.DOWN)) { in setRoundingMode() 371 } else if (roundingMode.equals(RoundingMode.FLOOR)) { in setRoundingMode() 373 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode() 375 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { in setRoundingMode() 377 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { in setRoundingMode() 379 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { in setRoundingMode() 381 } else if (roundingMode.equals(RoundingMode.UP)) { in setRoundingMode()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_roundingutils.h | 46 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument 51 switch (roundingMode) { in getRoundingDirection() 164 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument 165 switch (roundingMode) { in roundsAtMidpoint() 198 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
|
D | number_decimalquantity.h | 87 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode, 100 void roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
|
D | number_mapper.cpp | 97 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew() local 150 macros.roundingMode = roundingMode; in oldToNew() 244 macros.roundingMode = roundingMode; in oldToNew() 275 exportedProperties->roundingMode = roundingMode; in oldToNew()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_roundingutils.h | 46 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument 51 switch (roundingMode) { in getRoundingDirection() 164 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument 165 switch (roundingMode) { in roundsAtMidpoint() 198 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
|
D | number_decimalquantity.h | 87 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode, 100 void roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 423 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
|
D | number_mapper.cpp | 97 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew() local 150 macros.roundingMode = roundingMode; in oldToNew() 244 macros.roundingMode = roundingMode; in oldToNew() 275 exportedProperties->roundingMode = roundingMode; in oldToNew()
|
/third_party/icu/icu4c/source/i18n/ |
D | number_roundingutils.h | 46 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument 51 switch (roundingMode) { in getRoundingDirection() 164 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument 165 switch (roundingMode) { in roundsAtMidpoint() 198 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
|
D | number_decimalquantity.h | 87 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode, 100 void roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
|
D | number_mapper.cpp | 97 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew() local 150 macros.roundingMode = roundingMode; in oldToNew() 244 macros.roundingMode = roundingMode; in oldToNew() 275 exportedProperties->roundingMode = roundingMode; in oldToNew()
|
/third_party/quickjs/tests/ |
D | test_bignum.js | 277 { roundingMode: "half-even", property 280 { roundingMode: "half-even", property 283 { roundingMode: "half-even", property 287 { roundingMode: "half-even", property 291 { roundingMode: "half-even", property 294 { roundingMode: "down", property 297 { roundingMode: "half-even", property 300 { roundingMode: "half-even", property 303 { roundingMode: "half-even", property 306 { roundingMode: "half-even", property
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
D | MathContext.java | 298 int roundingMode; field in MathContext 462 roundingMode=setroundingmode; in MathContext() 525 return roundingMode; in getRoundingMode() 581 if (roundingMode==ROUNDS[r]) in toString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/ |
D | MathContext.java | 287 int roundingMode; field in MathContext 446 roundingMode=setroundingmode; in MathContext() 505 return roundingMode; in getRoundingMode() 560 if (roundingMode==ROUNDS[r]) in toString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberFormatterSettings.java | 226 public T roundingMode(RoundingMode roundingMode) { in roundingMode() argument 227 return create(KEY_ROUNDING_MODE, roundingMode); in roundingMode() 568 if (macros.roundingMode == null) { in resolve() 569 macros.roundingMode = (RoundingMode) current.value; in resolve()
|