Hi.
i've create a simple test:
Public sub Test2
Test2
Dim tt,ti,tu
tu = 30.02
ti = 20.01
tt = 10.01
if (tu-ti-tt) then
Log.Message("True")
Log.Message("tu = "&tu&", ti = "&ti&", tu-ti-tt = "&tu-ti-tt)
else
Log.Message("False")
Log.Message("tu = "&tu&", ti = "&ti&", tu-ti-tt = "&tu-ti-tt)
end If
End sub
I should get
False
tu = 30.02, ti = 20.01, tu-ti-tt = 0
What I get is :
True
tu = 30.02, ti = 20.01, tu-ti-tt = -1.77635683940025E-15
And after that i change
tu = 20.02
ti = 10.01
tt = 10.01
and this time i get what I'm expecting
False
tu = 20.02, ti = 10.01, tu-ti-tt = 0
Can somebody run this simple test and see if he gets the same result as me please.
Thanks.