""Julia A. Case"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $theta = 15*pi/360;
> gives a value of 0 for $theta... it should be something like 0.131...
>
> Julia
I get
echo 15 * M_PI / 360;
returns
0.13089969389957
--
PHP General Mailing Li
pi is a function. Try this:
$theta = 15*pi()/360;
It should return 0.13089969389957
-Evan Nemerson
> $theta = 15*pi/360;
> gives a value of 0 for $theta... it should be something like 0.131...
> Julia
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
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 -
If u don't want to use the pi() function.
Try M_PI. This is a pi constant its value is 3.14159265358979323846
$theta=15*M_PI/360;
- Original Message -
From: Anon Y Mous <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 2:21 PM
Subject: Re: [P
4 matches
Mail list logo