[Tutor] Help with Recurring Function
Alan Gauld
alan.gauld at btinternet.com
Sat Apr 26 14:46:39 CEST 2008
"Sanhita Mallick" <sanhitam at yahoo.com> wrote
> being calculated correctly as checked by the "print"
> statement. But when we do
>
> norm_ted = (2 * ted) / mag
It might be an integer division issue.
Try
norm_ted = (2*ted) / float(mag)
Just a thought...
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list