mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
One more comment: clarifying roundingMode use in NumberPropertyMapper::oldToNew
This commit is contained in:
parent
e57d4a93f8
commit
9906ef6958
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ MacroProps NumberPropertyMapper::oldToNew(const DecimalFormatProperties& propert
|
|||
int32_t minSig = properties.minimumSignificantDigits;
|
||||
int32_t maxSig = properties.maximumSignificantDigits;
|
||||
double roundingIncrement = properties.roundingIncrement;
|
||||
// Not assigning directly to macros.roundingMode here: we change
|
||||
// roundingMode if and when we also change macros.precision.
|
||||
RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN);
|
||||
bool explicitMinMaxFrac = minFrac != -1 || maxFrac != -1;
|
||||
bool explicitMinMaxSig = minSig != -1 || maxSig != -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue