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 (May 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 26 May 2006 10:17:09 -0400
Reply-To:     Jyothi Nekkalapudi <jnekkalapudi@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jyothi Nekkalapudi <jnekkalapudi@GMAIL.COM>
Subject:      Decimal Values and Places

Hello, I have a question regarding limiting the number of decimal values. In a SAS dataset I have 8 variables whose values need to be restricted to 4 places and 2 variables whose values need to be restricted to 2 places.

If x = 54.46698 in the current SAS dataset, I want x = 54.4669.

I have used put function do over pd; pd = put(pd,11.4); end;

which gives me a value of 54.467.

How can I avoid this rounding off and get the exact value and restrict the decimal places.

Any help will be great. Thank You.


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