<html>
<body>
Elis,<br><br>
You could have found the solutions to your various puzzlements by reading
in Alan's tutorial,
&lt;<a href="http://www.freenetpages.co.uk/hp/alan.gauld/" eudora="autourl">
http://www.freenetpages.co.uk/hp/alan.gauld/</a>&gt;<br><br>
The page reached by the &quot;Simple Sequences&quot; link probably is all
you need.&nbsp; <br><br>
Why don't you use these extremely useful sources of help?<br><br>
Dick Moores<br><br>
At 06:55 AM 3/25/2008, elis aeris wrote:<br>
<blockquote type=cite class=cite cite="">what if i want it only to 2nd
decimal?<br><br>
what if i want to cut off everything behind decimal?<br><br>
On Tue, Mar 25, 2008 at 6:30 AM, Michael Connors
&lt;<a href="mailto:connorsml@gmail.com">connorsml@gmail.com</a>&gt;
wrote:<br>

<dl><br>

<dd>On 25/03/2008, elis aeris</b>
&lt;<a href="mailto:hunter92383@gmail.com">hunter92383@gmail.com</a>&gt;
wrote:<br>

<dl>
<dd>x = 53<br>

<dd>w = 192<br>

<dd>for a in range ( x, (x+192) ):<br>

<dd>&nbsp;&nbsp;&nbsp; print (a-x)/w<br><br>
<br>

<dd>the problem is at (a-x)/w<br><br>

<dd>it's supposed to return a ratio between x and w, yet it 0 all the
time.<br><br>

<dd>_______________________________________________<br>

<dd>Tutor maillist&nbsp; -&nbsp;
<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>

<dd>
<a href="http://mail.python.org/mailman/listinfo/tutor" eudora="autourl">
http://mail.python.org/mailman/listinfo/tutor</a><br><br>

</dl><br><br>

<dd>I think to do float division the operands should be floats.<br>

<dd>So if you do:<br><br>

<dd>print float(a-x) / float(w)<br><br>

<dd>It should produce a floating point result.<br><br>

<dd>-- <br>

<dd><font color="#888888">Michael Connors<br>
</font><br>

</dl><br>
_______________________________________________<br>
Tutor maillist&nbsp; -&nbsp; Tutor@python.org<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" eudora="autourl">
http://mail.python.org/mailman/listinfo/tutor</a></blockquote></body>
</html>