Date: Mon, 6 Nov 2000 20:44:14 GMT
Reply-To: Charles_S_Patridge@PRODIGY.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Charles Patridge <Charles_S_Patridge@PRODIGY.NET>
Organization: Deja.com - Before you buy.
Subject: Re: 3.14159 is an estimate of Pi,
did SAS has a better way of get ting it?
Eric,
I tried using this function "constant" in version 6.12 and did not work.
SAS does not recognize this as a function.
Is this something new in version 8??
If so, then I understand why it didn't work.
Thanks,
Charles Patridge
Email: Charles_S_Patridge@prodigy.net
In article <4923E246C55CD411B9110008C75DF3125E8868@CFSFB8EXC01>,
"Hanson, Eric A" <Eric.Hanson@CFSAN.FDA.GOV> wrote:
> SAS has a set of constants:
>
> DATA one;
> pi = constant('PI');
> e = constant('E'); /*The natural base*/
> Euler = constant('EULER');
>
> Eric A. Hanson
> Food and Drug Administration
> Washington, D.C.
>
> -----Original Message-----
> From: Paul Dorfman [mailto:paul_dorfman@HOTMAIL.COM]
> Sent: Monday, November 06, 2000 2:36 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: 3.14159 is an estimate of Pi, did SAS has a better way of
> geting it?
>
> Vincent Girard <v__girard@HOTMAIL.COM>
>
> >All I want is something better than using a ligne with P1=3.1416. A
macro?
> >a function()?
>
> Vincent,
>
> To start with, how about ARCOS(-1) ? Say,
>
> data _null_;
> pi = arcos(-1);
> put pi=;
> run;
> --------------------
> PI=3.1415926536
>
> Kind regards,
> =====================
> Paul M. Dorfman
> Jacksonville, Fl
> =====================
>
________________________________________________________________________
_
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
--
Charles Patridge - PDPC, Ltd.
172 Monce Road - Burlington, CT 06013 USA
Phone: 860-673-9278 or 860-675-9026
Email: Charles_S_Patridge@prodigy.net - Web: www.sconsig.com
Sent via Deja.com http://www.deja.com/
Before you buy.
|