Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: deg2rad - Manual
[go: Go Back, main page]

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

search for in the

exp" width="11" height="7"/> <decoct
Last updated: Wed, 01 Nov 2006
view this page in

deg2rad

(PHP 3 >= 3.0.4, PHP 4, PHP 5)

deg2rad --  度単位の数値をラジアン単位に変換する

説明

float deg2rad ( float number )

この関数は、number の単位を度からラジアンに 変換します。

例 1. deg2rad() の例

<?php

echo deg2rad(45); // 0.785398163397
var_dump(deg2rad(45) === M_PI_4); // bool(true)

?>

rad2deg() も参照ください。



add a note add a note User Contributed Notes
deg2rad
berndt at www dot michael - berndt dot de
01-Sep-2005 05:12
geformte Wellen erstellen mit deg2rad ()

Beispiel :
http://www.michael-berndt.de/ie/tux/welle.png

Code :
http://www.michael-berndt.de/ie/tux/deg2rad.htm
16-Dec-2004 03:20
Definition

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

exp" width="11" height="7"/> <decoct
Last updated: Wed, 01 Nov 2006
 
 
show source | credits | sitemap | contact | advertising | mirror sites