rad_to_deg
 
 
 

Returns the degree equivalent of a radian value. One radian equals roughly 57.29578 degrees.

float rad_to_deg(float radians)

radians is the radian angle you want to convert to degrees.

Examples

rad_to_deg(1)

Returns 57.296.

float $pi = 3.1415927;
rad_to_deg($pi)

Returns 180.