Date: Wed, 15 Feb 2006 12:46:17 -0500
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: Mantissa function
Don't know a simple one, but maybe you can do that with something like
num=input(compress(put(num,best20.),"."),20.);
with that you won't get
997800000
so you might have to use something like:
num=input(compress(put(num/10e5,best30.),"."),30.);
On Wed, 15 Feb 2006 09:15:09 -0800, von-hippel.1@osu.edu
<von-hippel.1@OSU.EDU> wrote:
>Does anyone know of a simple function to extract the mantissa from a
>SAS numeric variable?
>e.g., .9978 9.978 99.978 would all be converted to .9978.
>
>Thanks!
|