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: [PHP] math question
> 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 PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]