[Tutor] Help with Recurring Function
Sanhita Mallick
sanhitam at yahoo.com
Sun Apr 27 11:54:10 CEST 2008
Hi Alan.
Thanks a lot. It worked !!!!
> ------------------------------
>
> Message: 2
> Date: Sat, 26 Apr 2008 13:46:39 +0100
> From: "Alan Gauld" <alan.gauld at btinternet.com>
> Subject: Re: [Tutor] Help with Recurring Function
> To: tutor at python.org
> Message-ID: <fuv87u$it2$1 at ger.gmane.org>
> Content-Type: text/plain; format=flowed;
> charset="iso-8859-1";
> reply-type=original
>
>
> "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