12.14.5    Perform arithmetic on Tags and Variables - JScript

Addition

x = GETVAL("SLOPE") + 100.0;

sum = x + x1 + X2;

Multiplication

var x;

x = GETVAL("degrees") * 3.14159265 / 180;

 

Trigonometric Functions

var x, y, degrees1, tagnvalue;

y = Math.atan(x)

tagnvalue ="radians=";

tagnvalue += y;

SETVAL(tagnvalue);

 

 

/* arctan and, and string concatenation are explained under

MSDN Home >  MSDN Library >  Web Development >  Scripting >  Windows Script Technologies >  JScript >  Reference >  Methods >  

in JAVA help at:

http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthatan.asp

http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthconcatstring.asp

"add equal" += is under  MSDN Home >  MSDN Library >  Web Development >  Scripting >  Windows Script Technologies >  JScript >  Reference -> "Operators" at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsopraddequ.asp

*/

 

/* tan and add equal  are explained under

MSDN Home >  MSDN Library >  Web Development >  Scripting >  Windows Script Technologies >  JScript >  Reference >  Methods >  

in JAVA help at:

http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthatan.asp

http://msdn.microsoft.com/library/en-us/script56/html/js56jsmthconcatstring.asp

"add equal" += is under  MSDN Home >  MSDN Library >  Web Development >  Scripting >  Windows Script Technologies >  JScript >  Reference -> "Operators" at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsopraddequ.asp

*/