[Tutor] decimal precision

elis aeris hunter92383 at gmail.com
Tue Mar 25 14:19:03 CET 2008

x = 53
w = 192
for a in range ( x, (x+192) ):
    print (a-x)/w

the problem is at (a-x)/w

it's supposed to return a ratio between x and w, yet it 0 all the time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080325/b7ae0f7b/attachment.htm 

More information about the Tutor mailing list