Tan
- Last UpdatedOct 29, 2026
- 1 minute read
The function Tan calculates the tangent of an angle.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
Tan |
Trigonometric |
Synchronous |
Yes |
Supported |
Supported |
Supported |
Supported |
Supported |
Syntax
Tan(numAngle)
Tan ( numAngle )
numAngle
The angle in radians.
Tip: 2π radians is the same as 360 degrees.
Returned value
This function returns the tangent of the specified angle.
The function cannot return the actual tangent of π/2 (that is, Tan(Pi()/2) or equivalent), because that is infinite. Instead, the function returns the largest number possible, given the limited precision of the value returned by the function Pi.
Examples
Calculate the tangent of 1 radian:
Tan(1)
Calculate the tangent of π radians:
Tan(Pi())
Calculate the tangent of the value of the project tag MyAngle:
Tan(MyAngle)