中文
Node Documentation

Round

DataTarget independentmath.round

Round X. Digits=0 rounds to integer; 2 keeps two decimals; -2 rounds to hundreds (12345 gives 12300). Digits is capped at +/-15 (beyond float precision).

Example use

For example, round 3.14159 to two decimal places to get 3.14, then connect the result to a numeric input.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 2

ValuevalueNumber

The value operated on; supply structured data of the type shown and see the node description for its role.

Default availableDefault: 0
Decimal placesdigitsInteger

Decimal places to retain; negative values round to tens, hundreds and so on.

Default availableDefault: 0
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

Data outputs 1

ResultresultNumber

The result of this data operation, with its type determined by the matching inputs.

Version and node identity

Version 1.0.0

sha256:04721ef47ce41da55ec048a9751a65e7581f5e6fbc54153e23f85e3e0f5cfe91