My Python is failing math.
Michael P. Soulier
msoulier at digitaltorque.ca
Wed Jan 12 03:22:34 UTC 2005
On 11/01/05 Kent Frazier said:
> OK, this is really strange. I am using Hoary updated daily and Python
> 2.4-0ubuntu4. I like to use Python as a nice and powerful calculator
> sometimes, but for some reason, my Python is getting the wrong answers
> for equations involving decimals. It seems to behave consistently
> with itself, but the answers it is giving are blatantly wrong. I have
> included a snippet below as an example of its craziness.
http://python.fyxm.net/doc/faq/general.html#why-are-floating-point-calculations-so-inaccurate
Mike
--
Michael P. Soulier <msoulier at digitaltorque.ca>
http://www.digitaltorque.ca
http://opag.ca python -c 'import this'
Jabber: msoulier at digitaltorque.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050111/773182e2/attachment.sig>
More information about the ubuntu-users
mailing list