Round

This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.

The rounding function (round) maps an input value to its nearest whole number. Halfway values are rounded away from zero.

With a vec2 input, this applies separately to the X and Y components.

Interface

Inputs

ParameterDetailsPossible Types
Value

The number to be rounded to the nearest whole number.

Primary Input

Number[]
Number
Vec2[]
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Number[]
Vec2
Vec2[]