abs

(PHP3 , PHP4 )

abs -- Absolute value

Description

mixed abs (mixed number)

Returns the absolute value of number. If the argument number is float, return type is also float, otherwise it is int.