Skip to content

Math.Round

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to round. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the input rounded to the nearest integer (as a float). FloatFloat2Float3Float4Color[Any]

This shard rounds the input floating-point number to the nearest integer.

Examples

1
2
@f3(-0.95 4.0 7.54) | Math.Round | Log
Assert.Is(@f3(-1.0 4.0 8.0) Break: true)

[info] [sample-wire] @f3(-1 4 8)