On 12/07/2012 08:25 AM, Bernhard Voelker wrote:
On 12/07/2012 12:59 AM, Pádraig Brady wrote:
So on to some initial observations...
Hi Assaf and Padraig,
numfmt claims itself (in --help):
Reformats NUMBER(s) to/from human-readable values.
Yes I was going to get to descriptions and docs at the end.
But for above I'd probably s| to/from human-readable values||
and in the first line in numfmt.c:
Reformat numbers like 11505426432 to the more human-readable 11G
Therefore this is my first test:
$ echo 11505426432 | src/numfmt
11505426432
Hmm, shouldn't it converting that to a human-readable
number then? ;-)
Heh, given my amendment above no :)
I suppose you could think of numfmt as
a number validator in default mode?
It should probably also convert from 1,234 to 1234 also.
Looking at scale_from_args: I'd favor lower-case arguments,
i.e. "si" and "iec" instead of "SI" and "IEC".
WDYT?
Yes, that's probably a bit easier on the eyes/fingers
thanks,
Pádraig.