|
-
Nov 24th, 2003, 10:49 PM
#1
Thread Starter
Addicted Member
negative to positive
Hi,
This is a really easy question I'm sure but I can't figure it out in a simple way.
Let's say I have A + B = C
and A is 100 and B is -200 so C = -100
How can I get C as a positive number?
I need this for a rectangle drawing function I'm writing where the mouse down and mouse up coordinates can be positive or negative.
What I'm really looking for is the difference between A and B as a positive number.
Any help?
Thanks
T
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|