Round

logic · C071 · starter-package 7.0.1

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 -15 through 15. 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 → 3 and -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.

IDSettingControlDefaultBounds/options
precisionPrecisionnumber0step 1
midpointMidpoint ruletoggleawayoptions: 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.

DirectionConnectorTypeRequired
Inputvalue — Valuenumberyes
Inputprecision — Precisionnumberno
Outputresult — Resultnumberon success