Calculate the absolute value of the argument.
n - the value (converted to a double) to apply this function to.
A double scalar.
$par1 = 10.25; $par2 = -20; $a = abs(10.25); $b = abs(-30); $c = abs("45"); println($a); println($b); println($c);
10.25 30.0 45.0