Hi, I think this should be a very basic question. Anyways, when trying to run the script:
-------------------
Sub Main ()
BeginHide
StoreDoubleParameter "a", 1.0
StoreDoubleParameter "b", 5.0
EndHide
Dim c As Double
c = Log(a+1.0)/(b/2.0)
d = c
MsgBox d
End Sub
-------------------
I get an "invalid floating point operation" error, and the line "c = Log(a+1.0)/(b/2.0)" gets highlighted. Then, without making any changes whatsoever, I run the script again, and it works perfectly, outputting the value 0.2773... How can I fix
this, so that it works right the first time?