Ise'nt it math.sqrt and not "sqrt"..
Error is clear: a nil value; means that sqrt don't exist.
In some cases you need to load the math lib yourself before you can use it.
/Bluebear
QuoteIse'nt it math.sqrt and not "sqrt"..
You're most likely correct. I am just learning and have found that none of the other 'global' functions or constants are working either. Evidently because they're are not finding those 'class libraries'.
I tried your suggestion and works fine. Which leads me to another qestion: is there an 'API' or list of these class libraries somewhere? and what those libraries contain?
Thanks
doco