almightyegg Posted April 20, 2008 Share Posted April 20, 2008 Is there any way to make sure a number is positive? so if my variable is -1024 it would turn it into 1024 Any help is greatly appreciated Quote Link to comment Share on other sites More sharing options...
tippy_102 Posted April 20, 2008 Share Posted April 20, 2008 Use abs: http://ca3.php.net/abs 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.