rad2deg

(PHP 4, PHP 5, PHP 7)

rad2deg Converts the radian number to the equivalent number in degrees

Descrierea

rad2deg ( float $num ) : float

This function converts num from radian to degrees.

Parametri

num

A radian value

Valorile întoarse

The equivalent of num in degrees

Exemple

Example #1 rad2deg() example

<?php

echo rad2deg(M_PI_4); // 45

?>

A se vedea și

  • deg2rad() - Converts the number in degrees to the radian equivalent

add a note add a note

User Contributed Notes 2 notes

up
-2
Anonymous
20 years ago
Definition

<?
function rad2deg($arg) {
return
$arg*180/pi();
}
?>
up
-7
money1109 at gmail dot com
16 years ago
Conversion between grads and degrees

function gon2deg($gon) {
    return ($gon / 400) * 360;
}

function deg2gon($deg) {
    return ($deg / 360) * 400;
}
To Top