]> git.ipfire.org Git - thirdparty/coreutils.git/commit
numfmt: support user specified output precision
authorPádraig Brady <P@draigBrady.com>
Fri, 19 Jun 2015 18:18:21 +0000 (19:18 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 21 Jun 2015 03:16:29 +0000 (04:16 +0100)
commit0a279f619055cc165bb3cfa3bb737cdd28ed4d70
tree6149ce7f474051369efba96680228e3e0b5716db
parent71063bc858cd927e3622b511297e66b3e13f7453
numfmt: support user specified output precision

* src/numfmt.c (usage): Update the --format description
to indicate precision is allowed.
(parse_format_string): Parse a precision specification
like the standard printf does.
(double_to_human): Honor the precision in --to mode.
* tests/misc/numfmt.pl: New tests.
* doc/coreutils.texi (numfmt invocation): Mention the new feature.
* NEWS: Likewise.
NEWS
doc/coreutils.texi
src/numfmt.c
tests/misc/numfmt.pl