Hi,
I have a simple question: I have a var that can be sometime below 0 (ex: -5) How can I convert it to positive value (5)? I know with asp I can use int(x) what is it with php?
Thanks, Assaf
Absolute value www.php.net/abs
abs val
$number = abs($number) examp: -3.45 = number -3.45 = abs(-3.45) // comes out to be 3.45!