Re: math question
| From: | Zak Greant | Date: | Sat, 23 Jun 2001 09:30:52 +0000 |
| Subject: | Re: math question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54967@lists.php.net to get a copy of this message | ||
Have you defined the 'pi' constant?
If you are trying to use PHP's built-in PI constant, it is named 'M_PI'
Perhaps consider increasing your error reporting level so that PHP reports
problems like undefined constants - see error_reporting() for more details.
--zak
----- Original Message -----
From: "Julia A. Case" <julie@MageNet.com>
To: <php-general@lists.php.net>
Sent: Saturday, June 23, 2001 12:07 AM
Subject: [PHP] math question
> $theta = 15*pi/360;
> gives a value of 0 for $theta... it should be something like 0.131...