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

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 1 02:22:53 EDT 2016


>>On 2016-08-31 17:19, Guido van Rossum wrote:
>>
>>>I guess we need to debate what it should do if the value is
>>>way out of range of the SI scale system -- what's it going to do when
>>>I pass it 1e50? I propose that it should fall back to 'g' style then,
>>>but use "engineering" style where exponents are always a multiple of
>>>3.)

An alternative would be to use the largest or smallest scale
factor available, and use e format to make up the difference.
Not sure whether that would be better or worse.

-- 
Greg


More information about the Python-ideas mailing list