LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2009, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Abc Unha <abcunha@yahoo.com>
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 >


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