# Precision problem? (Program Bug and Problems)

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.

Joan

**Complete thread:**

- Precision problem? -
**joan**, 2013-08-02, 09:04- Precision problem? -
**lrcvs**, 2013-08-02, 17:10- Precision problem? -
**lrcvs**, 2013-08-02, 17:45

- Precision problem? -
- Precision problem? -
**lrcvs**, 2013-08-02, 18:15 - Precision problem? -
**Jim**, 2013-09-06, 22:15 - Precision problem? -
**Jim**, 2013-09-09, 02:21

- Precision problem? -