Precision problem? (Program Bug and Problems)

by joan @, Barcelona, Friday, August 02, 2013, 09:04 (2371 days ago)

I have come out with this problem:
for t=0 to 10 step 0.01
if t=int(t) then print t
next t
Does not print integer numbers (1 to 10)

I've tried several ways (using auxiliary variables) but none seem to 'compare' properly the 'float' variable and the 'integer' variable.

Thank you in advance.

Complete thread:

 RSS Feed of thread

powered by my little forum