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

search for in the

rand> <pow
[edit] Last updated: Fri, 17 May 2013

view this page in

rad2deg

(PHP 4, PHP 5)

rad2deg Umrechnung von Bogenmaß in Grad

Beschreibung

float rad2deg ( float $number )

Die Funktion rechenet einen Winkel number um von Bogenmaß in Grad.

Parameter-Liste

number

Ein Winkel in Bogenmaß

Rückgabewerte

Der zu number equivalente Wert in Grad

Beispiele

Beispiel #1 rad2deg() Beispiel

<?php

echo rad2deg(M_PI_4); // 45

?>

Siehe auch

  • deg2rad() - Rechnet einen Winkel von Grad in Bogenmaß um



add a note add a note User Contributed Notes rad2deg - [2 notes]
up
1
Anonymous
8 years ago
Definition

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

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

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

 
show source | credits | sitemap | contact | advertising | mirror sites