libxo icon indicating copy to clipboard operation
libxo copied to clipboard

commas in numeric output

Open philshafer opened this issue 7 years ago • 1 comments

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 avatar Aug 29 '17 16:08 philshafer

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"

philshafer avatar Nov 27 '18 18:11 philshafer