>>                 '#' : suppress trailing zeroes.
>>                 't' : include thousands separator(s).
> 
> Is there a reason for 't'?  Wouldn't ',' be more intuitive and "'" more
> consistent with printf(3C)?

I'll change this to be consistent with printf.

Also Yann asked for a update to clarify %% outputs a percent sign, since
the updated spec as-is seems to indicate things like %2.3b% would output
a percent sign which is just silly.

>>           o An optional 'b' character, which will express the result
>>             as radix-2 rather than radix-10 (radix 2 uses 1024^N
>>             whereas the default of radix 10 uses 1000^N to convert
>>             the number).
> 
> I'm going to side with Paul here: Can we take this opportunity to
> eliminate the mystery of whether a scaled number is base 10 or base 2 by
> making this function automatically use the IEC binary symbols (Ki, Mi,
> Gi, Ti, Pi, Ei, Zi, Yi)?

Clearly this is NOT the behavior you would want when you are expressing 
KB in the computer sense, etc. so I think it needs to be selectable.

How about using 'B' to indicate radix-2 with IEC symbols and 'b' to use 
radix-2 conversion but still use the usual SI K, M, etc..

- Eric

Reply via email to