[Python-Dev] str with base (original) (raw)

Steve Holden steve at holdenweb.com
Wed Jan 18 18:59:25 CET 2006


Jason Orendorff wrote:

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 Nah, Tim's got the chops to use the struct model to get his point across.

regards Steve

Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/



More information about the Python-Dev mailing list