Index: base/i18n/number_formatting.h |
diff --git a/base/i18n/number_formatting.h b/base/i18n/number_formatting.h |
index f5ec083ab911d74cd22de35cd49df03a4cb14a97..984d33d19fa30d6e9e4cf57e45dab17bb27a7d00 100644 |
--- a/base/i18n/number_formatting.h |
+++ b/base/i18n/number_formatting.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -11,8 +11,14 @@ |
namespace base { |
+// Return a number formatted with separators in the user's locale. |
+// Ex: FormatNumber(1234567) => "1,234,567" |
jungshik at Google
2011/06/22 00:35:01
nit: To make it clear that this is locale-dependen
Avi (use Gerrit)
2011/06/22 16:48:25
Done.
|
string16 FormatNumber(int64 number); |
+// Return a number formatted with separators in the user's locale. |
+// Ex: FormatDouble(1234567.0, 1) => "1,234,567.0" |
jungshik at Google
2011/06/22 00:35:01
nit : same here : 1,234,567.8 in English , 1.234.5
Avi (use Gerrit)
2011/06/22 16:48:25
Done.
|
+string16 FormatDouble(double number, int fractional_digits); |
+ |
} // namespace base |
#endif // BASE_I18N_NUMBER_FORMATTING_H_ |