Cos
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Return the trigonometric cosine of an integer or real number.
Syntax
Cos(x)
Arguments
-
x
Must be an integer or real number, which represents an angle in radians
Returns
The cosine of x
Exceptions
If x is not an integer or real number, returns an error value
Example
-
Cos(1.1)
[Returns 0.4536]
-
Cos(1)
[Returns 0.5403]
-
Cos('att1')
[Return the trigonometric cosine of the value of 'att1' at trigger time]