Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name

degrees()

Examples
float rad = PI/4;
float deg = degrees(rad);
Serial.print(rad);
Serial.print(" radians is ");
Serial.print(deg);
Serial.print(" degrees");
Description Converts a radian measurement to its corresponding value in degrees. Radians and degrees are two ways of measuring the same thing. There are 360 degrees in a circle and 2*PI radians in a circle. For example, 90° = PI/2 = 1.5707964. All trigonometric methods in Wiring require their parameters to be specified in radians.
Syntax
degrees(angle)
Parameters
angle int or float
Returns float
Usage Web & Application
Related radians()
Updated on July 07, 2011 11:08:06pm PDT

Creative Commons License