rad2deg()

Converts an angle from a radian measure into degrees.

Synopsis

float rad2deg( float x );

Parameters

Parameter Description
x angle

Return value

In the event of errors, the function returns 0.0.

Error

Invalid or missing arguments

Description

Converts the angle x in a radian measure into degrees

Example

main()
{
  float f;
  f=deg2rad(90); // PI/2
  f=rad2deg(f); // 90 again
}

Assignment

Mathematical function

Availability

CTRL