ptrcklgrs
12-28-2005, 12:17 AM
Fot some reason im having problems with using variables and math functions.
Ive enterd this code into my computer and it returns "undefined".
ang = 3;
math.tan (ang);
and it wont work. But if i enter
math.tan (3);
it works fine. Am i messing up at labling the variable. I tried other names for the variables but it doesnt make a difference. originally the problem occured in a much longer code but i got down to testing it and this was the problem.
HELP!!!
Ive enterd this code into my computer and it returns "undefined".
ang = 3;
math.tan (ang);
and it wont work. But if i enter
math.tan (3);
it works fine. Am i messing up at labling the variable. I tried other names for the variables but it doesnt make a difference. originally the problem occured in a much longer code but i got down to testing it and this was the problem.
HELP!!!