Formatting numbers

Rainer Deyke root at rainerdeyke.com
Tue May 1 22:37:45 EDT 2001


"Daniel Klein" <danielk at aracnet.com> wrote in message
news:7oquetg5hvmt7mijn9jkutemo6e6uotroa at 4ax.com...
> On Tue, 01 May 2001 23:52:56 GMT, matt at mondoinfo.com (Matthew Dixon
Cowles)
> wrote:
> >You need the ".0" or at least the dot in order to force floating-point
> >division.
>
> Thanks Matt. This works fine for some numbers but not all. :-( Try it with
> 123456 to see what I mean.

It is the nature of floating point numbers to be incorrect.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list