Rounds a finite number at a selected decimal precision or power of ten.
Inputs and field
- Value (number, required): Number to round.
- Precision (number, optional): Safe integer from
-15through15. Positive values round decimal places; negative values round tens, hundreds, and larger powers. The input overrides the field.
Toggle: Midpoint rule
- Half away from zero:
2.5 → 3and-2.5 → -3. - Half to even: Midpoints select the nearest even integer, reducing systematic aggregate bias.
Output
- Result (number): Rounded finite value.
Common uses
Prepare display values, normalize prices and measurements, round totals, or group numbers into tens and hundreds.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
precision | Precision | number | 0 | step 1 |
midpoint | Midpoint rule | toggle | away | options: Half away from zero (away), Half to even (even) |
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Non-integer or out-of-range precision, unsupported midpoint modes, invalid values, and non-finite results fail explicitly.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | value — Value | number | yes |
| Input | precision — Precision | number | no |
| Output | result — Result | number | on success |
