Hi Alan.

Thanks a lot. It worked !!!!

> ------------------------------
> 
> Message: 2
> Date: Sat, 26 Apr 2008 13:46:39 +0100
> From: "Alan Gauld" <[EMAIL PROTECTED]>
> Subject: Re: [Tutor] Help with Recurring Function
> To: tutor@python.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed;
> charset="iso-8859-1";
>       reply-type=original
> 
> 
> "Sanhita Mallick" <[EMAIL PROTECTED]> 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
> 
> 
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to