Return the cosine of different numbers:
The cos() function returns the cosine of a number.
Note: The cos() function returns a numeric value between -1 and 1, which represents the cosine of the angle.
Parameter | Description |
---|---|
number | Required. Specifies a number |
Return Value: | The cosine of number |
---|---|
Return Type: | Float |
PHP Version: | 4+ |