Primitive
math.round
BETAShort name: round
Version: 1.0.0
Round a value to a precision using round, floor, or ceil mode.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| mode | string | false | Rounding mode: "round", "floor", or "ceil". Defaults to "round". |
| precision | number | false | Non-negative integer decimal precision. Defaults to 0. |
| value | number | true | Input value to round. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | number | false | Rounded result. |