Return the cosine of a given number. The value passed in this function should be in radians.
This function does not generate a change.
cos(number)
Argument | Type | Description |
---|---|---|
number | int/float (required) | Input number |
Returns with a float, the cosine of value passed as argument.
cos() function example:
`The value of cosine of pi / 3 is {cos(MATH_PI / 3)}`
Return value in JSON format
"The value of cosine of pi / 3 is 0.5"