Method: Sin for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Sin for VBS
Method: Sin for VBS
Specifies the sine of a number.
vSin = Object.Sin(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. |
| vSin | Variant Receives the sine. The result ranges from -1 to 1. |
The following example calculates the sine of the number pi:
Call MsgBox(Sin(Pi))