note 92836 deleted from function.deg2rad by danbrown
| From: | danbrown@php.net | Date: | Tue, 11 Aug 2009 15:19:18 +0000 |
| Subject: | note 92836 deleted from function.deg2rad by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159325@lists.php.net to get a copy of this message | ||
Note Submitter: Kingsley
----
Regardless of whether Christian's code alternative is faster, he has got his formula somewhat
back to front ... this would give the correct answer:
$rad = M_PI * $deg / 180;