<html>
<body>
Elis,<br><br>
You could have found the solutions to your various puzzlements by reading
in Alan's tutorial,
<<a href="http://www.freenetpages.co.uk/hp/alan.gauld/" eudora="autourl">
http://www.freenetpages.co.uk/hp/alan.gauld/</a>><br><br>
The page reached by the "Simple Sequences" link probably is all
you need. <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
<<a href="mailto:connorsml@gmail.com">connorsml@gmail.com</a>>
wrote:<br>
<dl><br>
<dd>On 25/03/2008, elis aeris</b>
<<a href="mailto:hunter92383@gmail.com">hunter92383@gmail.com</a>>
wrote:<br>
<dl>
<dd>x = 53<br>
<dd>w = 192<br>
<dd>for a in range ( x, (x+192) ):<br>
<dd> 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 -
<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 - 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>