sin()
Description
Calculates the sine of an angle (in radians). The result will be between -1 and 1.
Syntax
sin(rad)
Parameters
rad
: The angle in radians. Allowed data types: float
.Returns
The sine of the angle. Data type:
double
.See also
Suggest changes
The content on docs.arduino.cc is facilitated through a public GitHub repository. If you see anything wrong, you can edit this page here.
License
The Arduino documentation is licensed under the Creative Commons Attribution-Share Alike 4.0 license.