mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-30 00:34:58 +00:00
9 lines
238 B
Python
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)}
|