PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

rand> <pow
Last updated: Sun, 25 Nov 2007

view this page in

rad2deg

(PHP 4, PHP 5)

rad2deg — Converts the radian number to the equivalent number in degrees

Popis

float rad2deg ( float $number )

This function converts number from radian to degrees.

Parametre

number

A radian value

Vrátené hodnoty

The equivalent of number in degrees

Príklady

Example#1 rad2deg() example

<?php

echo rad2deg(M_PI_4); // 45

?>

Tiež pozri



add a note add a note User Contributed Notes
rad2deg
money1109 at gmail dot com
15-May-2008 03:59
Conversion between grads and degrees

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

function deg2gon($deg) {
    return ($deg / 360) * 400;
}
15-Dec-2004 10:22
Definition

<?
function rad2deg($arg) {
 return $arg*180/pi();
}
?>

rand> <pow
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites