I am having a little trouble comparing two 'real' numbers to see if they are equal...
sv#=0
ms#=0.44
While Not KeyDown(1)
Print sv+" - "+ms
If sv=ms Then
Stop
Else
sv=sv+.01
EndIf
Delay 100
Wend
When you run the above code, both numbers are displayed and at one point become equal. But the program is ignoring it completely!!
Any ideas anyone?
sv#=0
ms#=0.44
While Not KeyDown(1)
Print sv+" - "+ms
If sv=ms Then
Stop
Else
sv=sv+.01
EndIf
Delay 100
Wend
When you run the above code, both numbers are displayed and at one point become equal. But the program is ignoring it completely!!
Any ideas anyone?