您的位置:寻梦网首页编程乐园VBScriptVBScript


objects constants operators statements functions properties methods






FUNCTION:  Tan( )

Tan(Number)

The Tan function returns the tangent for a number (angle).

Code:
<% =Tan(45.0) %>

Output:
1.61977519054386

You can also use a negative number (angle).

Code:
<% =Tan(-45.0) %>

Output:
-1.61977519054386