-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
number_with_delimiter method? (thousands separators) #5573
Comments
I think this belongs to a i18n shard, it's useful for presentations but it differs between localizations. |
Should |
I'm actually referring to thousands separator |
Yeah this is related to i18n but the implementation of the formatter itself could very well be in the standard library. It just needs to be configureable as to which characters to use as thousands delimiter and decimal separator. |
Could use |
Resolved by #6314 |
Can this be closed now? |
I searched for some time in the API docs and in the source code but could not find a function to format numbers with thousands separators (something like Rails' number_to_delimiter helper).
I'm using this snippet for now (which I adapted from ActiveSupport's source code):
I wonder if something like that shouldn't be included in the standard lib?
The text was updated successfully, but these errors were encountered: