Re: math question

From: Date: Sat, 23 Jun 2001 10:46:56 +0000
Subject: Re: math question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-54971@lists.php.net to get a copy of this 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 <dropbox@coeus-group.com> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#54971) next »