mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-27 17:21:23 +00:00
number format support number grouping
Signed-off-by: sunyaozu <sunyaozu@huawei.com>
This commit is contained in:
parent
f495376750
commit
d1e742d5ad
@ -136,7 +136,7 @@ void NumberFormat::InitProperties()
|
||||
numberFormat = numberFormat.precision(icu::number::Precision::maxFraction(DEFAULT_FRACTION_DIGITS));
|
||||
}
|
||||
if (!useGrouping.empty()) {
|
||||
numberFormat.grouping((useGrouping == "true") ?
|
||||
numberFormat = numberFormat.grouping((useGrouping == "true") ?
|
||||
UNumberGroupingStrategy::UNUM_GROUPING_AUTO : UNumberGroupingStrategy::UNUM_GROUPING_OFF);
|
||||
}
|
||||
if (!currencySign.empty() || !signDisplayString.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user