literal numbers

Dan Bishop danb_83 at
Mon Jul 26 20:46:52 CEST 2004

Michael Hudson <mwh at> wrote in message news:<m3658bkp6e.fsf at>...
> danb_83 at (Dan Bishop) writes:
> > Willem Broekema <news at> wrote in message news:<qqWdnThBC-nI4ZzcRVn-pQ at>...
>  [snip]
> > > So "011.3" and "011.3j" are read as in base 10. Wouldn't a syntax error 
> > > be more appropriate, as it is an attempt to read a floating point in 
> > > octal, which is unsupported?
> Seriously, is there any feasible excuse for wanting to format a
> floating point number in a radix other than 10?

So that whenever someone asks "Why does this calculaton give
0.10000000000000001 instead of 0.1?", we'll have a concise notation
for showing them the exact value ;-)

More information about the Python-list mailing list