[Python-ideas] real numbers with SI scale factors: next steps

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 1 01:50:07 EDT 2016


Steven D'Aprano wrote:

> On Tue, Aug 30, 2016 at 09:08:01PM -0700, Ken Kundert wrote:
> 
>> My thinking was that r stands for real like f stands for float.

The next available letter in the e, f, g sequence would
be 'h'.

If you want it to stand for something, it could be
"human-readable" or "human-oriented". (There's a precedent
for this in the "df" unix utility which has a -H option
producing SI prefixes.)

> I'm talking about chosing between "M" or "mega". The actual unit 
> itself is up to the caller to supply.

Maybe 'h' for abbreviations and 'H' for full prefixes?

-- 
Greg


More information about the Python-ideas mailing list