INTEGER|FLOAT abs(INTEGER|FLOAT number)
This function returns the absolute value of number, where number can be either a float or an integer (and the same type of value is returned). Examples:
abs(-6)
=> 6abs(7)
=> 7abs(-000.12)
=> 0.120000
abs() | Math | max() | min() | random()