Function: abs
The abs()
function returns the absolute value of a number. It can be used on both float
and integer
types.
Syntax:
<number>.abs()
Example:
var.test_value = -7.8
var.abs_value = var.test_value.abs()
case true:
// Render as: "Absolute value: 7.8"
return DEBUG, "Absolute value: @var.abs_value"