474 total contributions
The abs() function returns the absolute value of the argument.
abs()
$result = abs(n);
Where n is the number to find the absolute value of.
n
Using abs() to return the absolute value of -6.5:
-6.5
usVisit uscodeHide codeCodeOutputHide outputHide outputLoading...Run