[Tutor] floats acting like integers???

Jeff Peery jeffpeery at yahoo.com
Tue Jul 27 01:45:57 CEST 2004


hello, I have a problem with my IDLE or script. I put in something like a=1/7 and I print a and get zero?  but this is only for division, numbers go to integers? anyone have an idea of why this is happening? thanks.

 

Jeff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040726/7845a538/attachment.html


More information about the Tutor mailing list