Sin() Function
- Last UpdatedFeb 21, 2017
- 1 minute read
Returns the sine of a number. For trigonometric functions the number is the angle in degrees.
Syntax
result = Sin (number)
Parameters
number
A literal number, analog tagname, or numeric expression.
Example(s)
Sin(90) returns 1.
Sin(0) returns 0.
Sin(30) returns 0.5.
100 * Sin (6 * $second) returns a sine wave with an amplitude of 100 and a period of one minute.