VBScript TanFunction
Complete VBScript Reference
The Tan function returns the tangent of the specified number (angle).
Syntax
Tan(number)
| Parameters | Description |
|---|---|
| number | Required. A valid numeric expression that represents an angle in radians. |
Example
Example
<script type="text/vbscript">
document.write(Tan(40) & "<br />")
document.write(Tan(-40))
</script>
document.write(Tan(40) & "<br />")
document.write(Tan(-40))
</script>
The output result of the above example is:
-1.1172149309239
1.1172149309239
1.1172149309239
Try it Yourself »
Complete VBScript Reference Other Extensions