<?Php
echo rad2deg(0); // Output is 0
echo "<br>";
echo rad2deg(PI()); // Output 180
echo "<br>";
echo rad2deg(PI()/2); // Output is 90
echo "<br>";
echo rad2deg(PI()/3); // Output is 60
?>
Syntax
rad2deg(X);
X is the number representing angular value in radian. Output is in degree.
Math Constant PI()