B
Byte
How come:
sum = 1/4
print sum
returns 0? 1/4=0.25, not 0. How do I fix this?
-- /usr/bin/byte
sum = 1/4
print sum
returns 0? 1/4=0.25, not 0. How do I fix this?
-- /usr/bin/byte
Byte said:How come:
sum = 1/4
print sum
returns 0? 1/4=0.25, not 0. How do I fix this?
Byte said:How come:
sum = 1/4
print sum
returns 0?
1/4=0.25, not 0. How do I fix this?
Byte said:That dosnt work either:
sum = 0.1+1/4
print sum
Just returns 0.1
How come:
sum = 1/4
print sum
returns 0? 1/4=0.25, not 0. How do I fix this?
Byte said:That dosnt work either:
sum = 0.1+1/4
print sum
Just returns 0.1
Byte said:That dosnt work either:
sum = 0.1+1/4
print sum
Just returns 0.1
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.