Date: Thu, 29 Oct 2009 11:34:29 -0700
Reply-To: SAS_learner <proccontents@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SAS_learner <proccontents@GMAIL.COM>
Subject: Re: Convert Negative numbers to Positive numbers
In-Reply-To: <200910291830.n9TGna57031816@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
check for the logic
if number < 0 then Number = Number*-1
this should make all the -ve numbers +ve
On Thu, Oct 29, 2009 at 11:30 AM, Abc Unha <abcunha@yahoo.com> wrote:
> Is there any function to convert negative to positive numbers?
> Or Is there anything to make all numbers positive for that variable,
> Regardless number is positive or negative.
>
> Thanks
>
|