rad2deg(): Convert Radian to Degree

X is the number representing angular value in radian. Output is in degree.
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 

Math Constant PI()

Plotting of SIN & COS curves by using PHP GD function with deg2rad()

Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net


    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2022 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer