[Python-Dev] str with base

Jason Orendorff jason.orendorff at gmail.com
Wed Jan 18 17:39:38 CET 2006


On 1/18/06, Donovan Baarda <abo at minkirri.apana.org.au> wrote:
> I think supporting arbitrary bases for floats is way overkill and not
> worth considering.

If you mean actual base-3 floating-point arithmetic, I agree.  That's
outlandish.

But if there were a stdlib function to format floats losslessly in hex
or binary, Tim Peters would use it at least once every six weeks to
illustrate the finer points of floating point arithmetic. <0.00390625
wink>

+1.0

-j


More information about the Python-Dev mailing list