Floating point calculation problem
schiz_man at 21stcentury.com
Sat Feb 2 16:54:25 CET 2013
"Schizoid Man" <schiz_man at 21stcentury.com> wrote in message
news:kejcfi$s70$1 at dont-email.me...
> So for values of s=60 and k=50, the first code returns 0.1823215567939546
> (on the PC), whereas the second returns 0.0 (on the Mac). This this
> expression is evaluated in the numerator, it never returns a divide by
> zero error, and the result of 0 is treated as legitimate.
D'oh! That's the error right there. My inputs are 60 and 50, not 60.0 and
50.0. I am a dunderhead.
Apologies for wasting your time.
More information about the Python-list