Somebody help a stupid guy and tell me why is it with microsoft 2 doesn't equal 2.
Here is a small example representing my problem:
Sub Test()
Dim SPD As Single
SPD = 0
SPDT:
SPD = SPD + 0.1
GoTo SPDT
End Sub
If you add a watch for SPD and a break point so you can actually monitor the change you will see that instead of getting to 0.8 SPD becomes 0.8000001 and after that everything is screwed up! Changing SPD type to double seems to help but it only seems like that. If you put a conditional watch, say BREAK WHEN SPD=5 it will never happen. Any ideas
Here is a small example representing my problem:
Sub Test()
Dim SPD As Single
SPD = 0
SPDT:
SPD = SPD + 0.1
GoTo SPDT
End Sub
If you add a watch for SPD and a break point so you can actually monitor the change you will see that instead of getting to 0.8 SPD becomes 0.8000001 and after that everything is screwed up! Changing SPD type to double seems to help but it only seems like that. If you put a conditional watch, say BREAK WHEN SPD=5 it will never happen. Any ideas