newbie: precision question
alex goretoy
aleksandr.goretoy at gmail.com
Fri Mar 20 23:27:18 EDT 2009
I think you are looking for this:
>>> (math.pi - (math.sqrt(math.pi)))**2
1.8745410610157363
>>>
simple, multiplication and division have a higher precedence over addition
and subtraction
-Alex Goretoy
http://www.goretoy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090320/55643208/attachment-0001.html>
More information about the Python-list
mailing list