Working with decimal points

Byte eoinrogers at gmail.com
Sat Apr 8 11:21:06 EDT 2006


How come:

sum = 1/4
print sum

returns 0? 1/4=0.25, not 0. How do I fix this?

 -- /usr/bin/byte




More information about the Python-list mailing list