array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.rad2deg.php', 1 => 'rad2deg', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Math Functions', ), 'prev' => array ( 0 => 'function.pow.php', 1 => 'pow', ), 'next' => array ( 0 => 'function.round.php', 1 => 'round', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/math/functions/rad2deg.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
rad2deg — Converts the radian number to the equivalent number in degrees
num
A radian value
The equivalent of num
in degrees
Example #1 rad2deg() example
<?php
echo rad2deg(M_PI_4); // 45
?>