math_abs

Returns absolute value.

Target function

Signature

1math_abs(value)

Returns absolute value.

math_abs is a global callable that can be used wherever an expression is valid. math_abs is part of numeric expression work. Be deliberate about integer versus decimal inputs because several math helpers preserve or infer the result type from their arguments.

Parameters

value
Required value. Supply value positionally unless the signature shows a keyword form.

Examples

Basic call

1math_abs(-5)
The example keeps numeric inputs explicit so integer and decimal behavior remain visible.