How to use rad2deg in PHP

This article describe about rad2deg() Function in PHP.
  • 1196

rad2deg() Function

This function is used for convert radian number to it degree.

Syntax

rad2deg(radian_number)

 

Parameter Description
radian_number Specified a radian number to convert

Example

<html>
<body>
<?php
$rad = M_PI;
$deg = rad2deg($rad);
echo "$rad radians is equal to $deg degrees";
?>
</body>
</html>

Output

rad2deg-php.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.