summaryrefslogtreecommitdiff
path: root/platform/darwin/src/number_format.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/number_format.mm')
-rw-r--r--platform/darwin/src/number_format.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/darwin/src/number_format.mm b/platform/darwin/src/number_format.mm
index 86f16eb6dd..6e79bc5a38 100644
--- a/platform/darwin/src/number_format.mm
+++ b/platform/darwin/src/number_format.mm
@@ -27,7 +27,8 @@ std::string formatNumber(double number, const std::string& localeId, const std::
numberFormatter.maximumFractionDigits = 0;
numberFormatter.numberStyle = NSNumberFormatterCurrencyStyle;
}
- NSString *formatted = [numberFormatter stringFromNumber:@(number)];
+ NSString *formatted = [numberFormatter stringFromNumber:[NSNumber numberWithDouble:number]];
+// NSString *formatted = [numberFormatter stringFromNumber:@(number)];
std::string result = std::string([formatted UTF8String]);
return result;
}