LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 14 Jun 2001 17:07:13 +0100
Reply-To:     Peter Crawford <peter.crawford@DB.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Peter Crawford <peter.crawford@DB.COM>
Subject:      Math Question
Comments: To: Terry J Kohls <tjkohls@VPICORP.COM>
Content-type: text/plain; charset=iso-8859-1

that rounding to four decial places could be performed in the %sysfunc() like %LET D=%SYSFUNC( ROUND( &B, 0.015625 ),10.4 );

the %sysevalf() around &b is needed only when &B is not a constant like 18.0779, but an expression resolving like 18 + 6/77

Datum: 14/06/2001 14:14 An: SAS-L@LISTSERV.UGA.EDU

Antwort an: Terry J Kohls <tjkohls@VPICORP.COM>

Betreff: Math Question Nachrichtentext:

Hi,

I want to thank everyone for the help yesterday. Below is the formula that I used to solve my problem. Thanks Again, I really appreciated the help.

%LET B=18.0779; %LET D=%SYSFUNC(ROUND(%SYSEVALF(&B),0.015625)); %PUT D=&D; RUN;

THIS RESULTS WITH THE ANSWER: 18.078125 Now, I only need to trim the last two digits off.

Have A Good Day,

Terry Kohls tjkohls@vpicorp.com

--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


Back to: Top of message | Previous page | Main SAS-L page