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.