Skip to main content
Documentation
Node Editor

Rounding Nodes

Floor, ceiling, round, truncate, and fractional part, for numbers and vectors.

This category contains 10 nodes.

Nodes

Ceil

Rounds up to the nearest whole number. 2.1 becomes 3, and -1.9 becomes -1.

Inputs: Any number.

NameTypeRangeDefault
ValueNumberany0

Outputs: The number rounded up to a whole number.

NameTypeRange
NumberNumberint

Ceiling Vector

Rounds each component up to the nearest whole number.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector with each component rounded up.

NameTypeRange
VectorVectorvec

Floor

Rounds down to the nearest whole number. 2.9 becomes 2, and -1.1 becomes -2.

Inputs: Any number.

NameTypeRangeDefault
ValueNumberany0

Outputs: The number rounded down to a whole number.

NameTypeRange
NumberNumberint

Floor Vector

Rounds each component down to the nearest whole number. Use it for stepping or grid effects.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector with each component rounded down.

NameTypeRange
VectorVectorvec

Fractional Part

Keeps only the decimal part of a number and drops the whole number. Use it for repeating patterns and wrapping values.

Inputs: Any number.

NameTypeRangeDefault
ValueNumberany0

Outputs: The decimal part, always 0 to 1.

NameTypeRange
NumberNumber0-1

Fractional Part Vector

Keeps only the decimal part of each component, so a pattern repeats along each axis.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector of decimal parts, each 0-1.

NameTypeRange
VectorVector0-1

Round

Rounds to the nearest whole number. 2.4 becomes 2, and 2.6 becomes 3.

Inputs: Any number.

NameTypeRangeDefault
ValueNumberany0

Outputs: The nearest whole number.

NameTypeRange
NumberNumberint

Round Vector

Rounds each component to the nearest whole number.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector with each component rounded.

NameTypeRange
VectorVectorvec

Truncate

Removes the decimal part and keeps only the whole number. 3.7 becomes 3, and -2.9 becomes -2.

Inputs: Any number.

NameTypeRangeDefault
ValueNumberany0

Outputs: The whole number part.

NameTypeRange
NumberNumberint

Truncate Vector

Removes the decimal part from each component. 3.7 becomes 3, and -2.9 becomes -2.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector of whole number parts.

NameTypeRange
VectorVectorvec