e vs exp()? / financial applications
tjreedy at udel.edu
Tue Sep 24 03:33:03 CEST 2002
"Andrew Thompson" <andrew.thompson at ashecastle.com> wrote in message
news:mailman.1032801271.6597.python-list at python.org...
> One must be aware of the representational issues and accuracy of
> arithmetic within a datatype when using numerical types. This is
> much a Python issue as one of representing the real number line with
> float types.
> W=0.89 / 4
> which are both *different* according to the == operator, but for the
> purposes of numerical accuracy are identical.
Since 'W' != 'w' in Python, both give a NameError unless w defined
Although w appears to be exactly represented, it must not be. Cute
Terry J. Reedy
More information about the Python-list