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

9 lines
238 B
Python

"""Workflow plugin: round number."""
def run(_runtime, inputs):
"""Round number to specified precision."""
value = inputs.get("value", 0)
precision = inputs.get("precision", 0)
return {"result": round(value, precision)}