The Arduino Reference text is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Find anything that can be improved? Suggest corrections and new documentation via GitHub.
Doubts on how to use Github? Learn everything you need to know in this tutorial.
Last Revision: Searching...
Last Build: 2024/10/10
Calculates the cosine of an angle (in radians). The result will be between -1 and 1.
cos(rad)
rad: The angle in radians. Allowed data types: float.
rad
float
The cos of the angle. Data type: double.
double
LANGUAGE float
LANGUAGE double