Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Show Negative number as Positive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frankbelly - 04 Jan 2007 00:21 GMT
I know this one is really easy, but I can't seem to find it.  

I have a negative number assigned to a variable and I need to take that
number and assign it to a second variable except I need the postive value of
that number to be assigned to the second variable.

variable1 = -10

variable2 = Positive(variable1)

I'm sure there is some sort of format expression similar to the above that I
can use.  Any help is greatly appreciated.
Karl E. Peterson - 04 Jan 2007 00:29 GMT
> I know this one is really easy, but I can't seem to find it.
>
[quoted text clipped - 8 lines]
> I'm sure there is some sort of format expression similar to the above
> that I can use.  Any help is greatly appreciated.

 variable2 = Abs(variable1)

Signature

Working without a .NET?
http://classicvb.org/

Frankbelly - 04 Jan 2007 00:38 GMT
Perfect!  Thanks so much.

> > I know this one is really easy, but I can't seem to find it.
> >
[quoted text clipped - 10 lines]
>
>   variable2 = Abs(variable1)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.