cos()
returns the cosine of a number.
Syntax: cos(expression)
Returns: A Float.
Arguments
Name | Description |
expression | A numeric expression that represents the angle in radians. |
Example
RETURN cos(1)
The value returned will be the cosine of 1 radians, which is 0.5403023058681398.
Considerations
cos(null)
returnsnull
.
Example
RETURN cos(0.341)
Returns the following Result
cos(0.341) |
0.9424207071144931 |
Example
RETURN cos(-1.4)
Returns the following Result
cos(-1.4) |
0.16996714290024104 |
Example
RETURN cos(0)
Returns the following Result
cos(0) |
1.0 |
Example
RETURN cos(null)
Returns the following Result
cos(null) |
null |
Note– cos(null)
returns null
.