Date: Thu, 23 Sep 2004 14:59:44 -0600
Reply-To: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Subject: Re: How to get decimal places out of a numeric value
Content-Type: text/plain; charset=us-ascii
"Eric Yount" <eric.yount@RTP.PPDI.COM> wrote:
>No...
>That was my long-lost cousin, Robin. :)
>No idea if we're really related, but how many Younts can there be?
Enough to make a Yountville, <http://www.westsong.com/yountville/>,
home of what some people claim is the best restaurant in the world,
<http://www.frenchlaundry.com/>.
--
JackHamilton@FirstHealth.com
Manager, Technical Development
Metrics Department, First Health
West Sacramento, California USA
>>> "Eric Yount" <eric.yount@RTP.PPDI.COM> 09/23/2004 1:41 PM >>>
No...
That was my long-lost cousin, Robin. :)
No idea if we're really related, but how many Younts can there be?
Bruce Johnson wrote:
> Eric Yount...didn't you play for the Milwaukee Brewers?
>
> ________________________________
> Bruce A. Johnson
> bjohnson@solucient.com
>
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Eric Yount
> Sent: Thursday, September 23, 2004 3:25 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: How to get decimal places out of a numeric value
>
>
> Or if you want the number of places after the decimal, try:
>
> x = 123.345;
>
> decplace = length(scan(x,2));
>
> Eric
>
>
> Dunn, Toby wrote:
>
>
>>Bob,
>>
>>Try:
>>
>>
>>X = 123.345;
>>
>>Decplace = index(x,.);
>>
>>Toby Dunn
>>
>>-----Original Message-----
>>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
>>Bob Lan
>>Sent: Thursday, September 23, 2004 3:08 PM
>>To: SAS-L@LISTSERV.UGA.EDU
>>Subject: How to get decimal places out of a numeric value
>>
>>Dear all,
>>
>>Do you know how can I get decimal places out of a variable value?
For
>>example, I want to know it is 3 from 123.123. I have tried the
>>following. But those did not work for me.
>>
>>
>>
>>proc means data=sashelp.class noprint;
>> class sex;
>> var height;
>> output out=htmean n=_n mean=_mean median=_median std=_std
min=_min
>>max=_max; run;
>>
>>data _null_;
>> set htmean;
>>
>> x=vformatd(_median);
>>
>> put x=;
>>run;
>>
>>proc sql noprint;
>> select format into: fmt
>> from dictionary.columns
>> where libname='WORK' and
>> memname='HTMEAN' and
>> name ='_median';
>>quit;
>>
>>%put ***&fmt***;
>>
>
>
>
>
______________________________________________________________________
> This email transmission and any documents, files or previous email
> messages attached to it may contain information that is confidential
or
> legally privileged. If you are not the intended recipient or a
person
> responsible for delivering this transmission to the intended
recipient,
> you are hereby notified that you must not read this transmission and
> that any disclosure, copying, printing, distribution or use of this
> transmission is strictly prohibited. If you have received this
> transmission in error, please immediately notify the sender by
telephone
> or return email and delete the original transmission and its
attachments
> without reading or saving in any manner.
> This message is a private communication. It may contain information
that is confidential
> and legally protected from disclosure. If you are not an intended
recipient, please do
> not read, copy or use this message or any attachments, and do not
disclose them to others.
> Please notify the sender of the delivery error by replying to this
message, and then
> delete it and any attachments from your system.
> Thank you,
> Solucient LLC
> (rev eXclaimer 2x)
>
______________________________________________________________________
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential
or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended
recipient,
you are hereby notified that you must not read this transmission and
that any disclosure, copying, printing, distribution or use of this
transmission is strictly prohibited. If you have received this
transmission
in error, please immediately notify the sender by telephone or return
email
and delete the original transmission and its attachments without
reading
or saving in any manner.
|