```Date: Wed, 24 Oct 2007 17:10:33 -0700 Reply-To: "Schwarz, Barry A" Sender: "SAS(r) Discussion" From: "Schwarz, Barry A" Subject: Re: How To : Find Max Decimals IN A VAR In-Reply-To: <455E5B258922154FBE497F58237915C604A9E82E@XCH-NW-8V2.nw.nos.boeing.com> Content-Type: text/plain; charset="us-ascii" Obviously that should have read "are not stored". -----Original Message----- From: Schwarz, Barry A Sent: Wednesday, October 24, 2007 3:35 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: How To : Find Max Decimals IN A VAR Are you dealing with numeric or character variables? You do realize that most fractions, such as .2 and .33 are stored as exact numeric values in the computer. If you specify a sufficient precision, .2 will print as .19999999999968 or some such value depending on how your hardware stores floating point values. How do you intend to distinguish between the two. -----Original Message----- From: Raj [mailto:snip] Sent: Wednesday, October 24, 2007 10:40 AM To: SAS-L@LISTSERV.UGA.EDU Subject: How To : Find Max Decimals IN A VAR HI, Say there is a dataset like below, how to find the maximum num of decimal places that variable T has in this dataset and store it into a macro variable In this case the maximum decimals is 2. Any solutions team..? data xxxtest; input t ; datalines; 1 2.2 3.33 2.0 4 ; run; ```

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