ghgarcia Posted August 28, 2006 Share Posted August 28, 2006 I need some help in changing a positive to a negative and vica as versa. Any help would be greatly appreciated.Thanks,George Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 28, 2006 Share Posted August 28, 2006 Multiply by -1.[code]$x = 10;echo 'x = ' . $x . "<br>-x = ' . $x * -1;$y = -20;echo 'y = ' . $y . "<br>-y = ' . $y * -1;[/code] Quote Link to comment Share on other sites More sharing options...
ghgarcia Posted August 28, 2006 Author Share Posted August 28, 2006 Thanks really appreciate it works great.George Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.