Jul 1, 2010 #2 gmmastros Programmer Feb 15, 2005 14,901 US If you want to change the sign of a number, you can multiply by -1. MyVariable = -1 * MyVariable If you want your value to always be positive... MyVariable = Abs(MyVariable) If you want your value to always be negative... MyVariable = -1 * Abs(MyVariable) -George "The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom Upvote 0 Downvote
If you want to change the sign of a number, you can multiply by -1. MyVariable = -1 * MyVariable If you want your value to always be positive... MyVariable = Abs(MyVariable) If you want your value to always be negative... MyVariable = -1 * Abs(MyVariable) -George "The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
Jul 1, 2010 Thread starter #3 cabobound Programmer Jul 11, 2007 80 US HA! I have been doing so much formulated math I forgot the simplest thing! Thanks! Upvote 0 Downvote