problem with the 'math' module in 2.5?

Paddy paddy3118 at netscape.net
Sun Oct 15 05:14:46 EDT 2006


Ben Finney wrote:
> "Chris" <chrispatton at gmail.com> writes:
>
> > Oh, ok that explains it. Is that why my 16-bit calculator gives me
> > 0?
>
> Your calculator is probably doing rounding without you asking for it.
>
> Python refuses to guess what you want, and gives you the information
> available.
>
Hi Ben,
I don't think Python should take too much credit here. Floating point
calcuations are subject to rounding. Sometimes it shows.

- Pad.




More information about the Python-list mailing list