array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.rad2deg.php', 1 => 'rad2deg', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Funções Matemáticas', ), 'prev' => array ( 0 => 'function.pow.php', 1 => 'pow', ), 'next' => array ( 0 => 'function.round.php', 1 => 'round', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'pt_BR', '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 — Converte o número em radianos para o equivalente em graus
num
Um valor em radianos
O equivalente de num
em graus
Exemplo #1 Exemplo de rad2deg()
<?php
echo rad2deg(M_PI_4); // 45
?>