deg2rad()
Converts an angle from measurement in degrees to a radian measurement
Synopsis
float deg2rad( float x );
Parameters
Parameter | Description |
---|---|
x | angle |
Return Value
In the event of errors, 0.0 is returned.
Errors
Description
Converts the angle x indicated in degrees into a radian measurement.
Example
main()
{
float f;
f=deg2rad(90); // PI/2
f=rad2deg(f); // 90 again
}
Assignment
mathematical function
Availability
CTRL