Files
AutoMetabuilder/backend/autometabuilder/workflow/plugins/math/math_abs.py
2026-01-10 13:36:29 +00:00

8 lines
173 B
Python

"""Workflow plugin: absolute value."""
def run(_runtime, inputs):
"""Calculate absolute value."""
value = inputs.get("value", 0)
return {"result": abs(value)}