Home
last modified time | relevance | path

Searched refs:rounding_ (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4c/source/i18n/
Dnumber_mapper.cpp279 Precision rounding_; in oldToNew() local
281 rounding_ = precision.withCurrency(currency, status); in oldToNew()
283 rounding_ = precision; in oldToNew()
290 if (rounding_.fType == Precision::PrecisionType::RND_FRACTION) { in oldToNew()
291 minFrac_ = rounding_.fUnion.fracSig.fMinFrac; in oldToNew()
292 maxFrac_ = rounding_.fUnion.fracSig.fMaxFrac; in oldToNew()
293 } else if (rounding_.fType == Precision::PrecisionType::RND_INCREMENT in oldToNew()
294 || rounding_.fType == Precision::PrecisionType::RND_INCREMENT_ONE in oldToNew()
295 || rounding_.fType == Precision::PrecisionType::RND_INCREMENT_FIVE) { in oldToNew()
296 increment_ = rounding_.fUnion.increment.fIncrement; in oldToNew()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberPropertyMapper.java324 Precision rounding_; in oldToNew()
326 rounding_ = ((CurrencyPrecision) rounding).withCurrency(currency); in oldToNew()
328 rounding_ = rounding; in oldToNew()
335 if (rounding_ instanceof FractionRounderImpl) { in oldToNew()
336 minFrac_ = ((FractionRounderImpl) rounding_).minFrac; in oldToNew()
337 maxFrac_ = ((FractionRounderImpl) rounding_).maxFrac; in oldToNew()
338 } else if (rounding_ instanceof IncrementRounderImpl) { in oldToNew()
339 increment_ = ((IncrementRounderImpl) rounding_).increment; in oldToNew()
342 } else if (rounding_ instanceof SignificantRounderImpl) { in oldToNew()
343 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberPropertyMapper.java323 Precision rounding_; in oldToNew()
325 rounding_ = ((CurrencyPrecision) rounding).withCurrency(currency); in oldToNew()
327 rounding_ = rounding; in oldToNew()
334 if (rounding_ instanceof FractionRounderImpl) { in oldToNew()
335 minFrac_ = ((FractionRounderImpl) rounding_).minFrac; in oldToNew()
336 maxFrac_ = ((FractionRounderImpl) rounding_).maxFrac; in oldToNew()
337 } else if (rounding_ instanceof IncrementRounderImpl) { in oldToNew()
338 increment_ = ((IncrementRounderImpl) rounding_).increment; in oldToNew()
341 } else if (rounding_ instanceof SignificantRounderImpl) { in oldToNew()
342 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
[all …]
/external/llvm-project/flang/include/flang/Evaluate/
Dcommon.h216 : messages_{m}, defaults_{d}, intrinsics_{t}, rounding_{round},
220 intrinsics_{that.intrinsics_}, rounding_{that.rounding_},
226 intrinsics_{that.intrinsics_}, rounding_{that.rounding_},
235 Rounding rounding() const { return rounding_; }
258 Rounding rounding_{defaultRounding};
/external/llvm-project/flang/lib/Decimal/
Dbig-radix-floating-point.h69 : rounding_{rounding} {}
118 isNegative_{that.isNegative_}, rounding_{that.rounding_} {
357 enum FortranRounding rounding_ { RoundNearest }; in RemoveLeastOrderZeroDigits() enum
Ddecimal-to-binary.cpp151 switch (rounding_) { in LoseLeastSignificantDigit()
383 return f.ToBinary(isNegative_, rounding_); in ConvertToBinary()
Dbinary-to-decimal.cpp19 : rounding_{rounding} { in BigRadixFloatingPointNumber()
151 switch (rounding_) { in ConvertToDecimal()