Skip to content
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

commas in numeric output #56

Open
philshafer opened this issue Aug 29, 2017 · 1 comment
Open

commas in numeric output #56

philshafer opened this issue Aug 29, 2017 · 1 comment
Assignees

Comments

@philshafer
Copy link
Contributor

Add "hn-commas" to add commas in the output of large numeric values.

Will need a command line argument to turn it off.

Should be ignored when humanize is on.

@philshafer philshafer self-assigned this Aug 29, 2017
@philshafer
Copy link
Contributor Author

Already have "comma" flag, so perhaps we should call this "numeric" since "grouping" or "thousand_sep" is mostly meaningless. This will only be triggered if there is a setting for locale.grouping and locale.thousand_sep (which is a horrible name, given that it's not specifically thousands).

% env LC_NUMERIC=en_US.UTF-8 locale -k grouping
grouping="3"
% env LC_NUMERIC=C locale -k grouping
grouping="127"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant