{ Frameless }

abs($arg)

The abs(num) function accepts any numeric value and returns its absolute value. The result type depends on the numeric type of the argument.

Arguments

ArgumentType
$argnumeric
Return valuenumeric

Examples

abs(4.2)4.2
abs(-4.2)4.2