climber59 wrote:
Abs reports the "distance" from zero so the abs of 142 is 142.
Exactly, so the distance of 142 from 0 is 142, and the distance of -142 from 0 is 142. I like to remember it as that it always makes numbers positive, so the positive numbers stay positive, and the negative numbers become positive. If you want to be able to change 142 between negative and positive, multiply 142 * -1 = -142, and -142 * -1 = 142. Hope this helps!
Offline
I don't see anything wrong with what's happening. As climber59 and coka stated, it's doing exactly what it should be doing
If you want to change it between negative and positive, like Coka said, multiply it by negative one. I can't stress how often I use that particular strategy.
Offline
coolstuff wrote:
I don't see anything wrong with what's happening. As climber59 and coka stated, it's doing exactly what it should be doing
If you want to change it between negative and positive, like Coka said, multiply it by negative one. I can't stress how often I use that particular strategy.
OMG.
You guys are lifesavers. Deleting thread.
Offline
coolstuff wrote:
I don't see anything wrong with what's happening. As climber59 and coka stated, it's doing exactly what it should be doing
If you want to change it between negative and positive, like Coka said, multiply it by negative one. I can't stress how often I use that particular strategy.
Or, you can subtract it from zero. It might be microscopically faster to do a subtract operation rather than a multiply operation
Offline