I have been attempting to calculate the error function for a number but cannot determine how to do this in Calc. I get a “BASIC runtime error. Variable not defined.” error. The code I used is:
Blockquote
Option Explicit
Sub Main
DIM num As Double
num = ERF.PRECISE(0.5)
print num
End Sub
Blockquote
Any suggestions would be greatly appreciated. Thanks.