Method: Tan for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Tan for VBS
Method: Tan for VBS
Specifies the tangent of a number.
vTan = Object.Tan(number)
| Object | VBS Object with this method. You do not need to specify this object. |
| number | Variant Specifies a numeric value that corresponds to an angle in radians. |
| vTan | Variant Receives the tangent. |
The following example calculates the tangent of the number pi:
Call MsgBox(Tan(Pi))