PHP rad2deg() FunctionPHP rad2deg() function is used to converts a radian value to degree value. Syntax:Given above function converts number from radian to degree.
Example 1Output: Your radian value is = 0 By using 'rad2deg()' function, Converted Degree value is :0 Example 2Output: Your Number is : M_PI_4 By using 'rad2deg()' function, your radian equivalent is :45 Example 3Output: Your radian value is pi() :3.1415926535898 By using 'rad2deg()' function, Converted Degree value is :180 Example 4Output: Your radian value is (pi()/4) = 0.78539816339745 By using 'rad2deg()' function, Converted Degree value is :45
Next TopicPHP Math
|