Math
Round a number to a multiplication factor.
Docs for v2.1.16, the latest version.
ID
math-operators-round-to-factorGroup
Operators
Plugin
MathKeywords
Round To Factor
Operators
3
What the node takes in, from wires or typed values.
Number X
Number to round
Factor
Multiplication factor to round to
Round Type
Default 0
Determines how the number is rounded 0 = Nearest 1 = Floor 2 = Ceiling
4
What the node gives out, to wire into other nodes.
Rounded
Resulting rounded number
Difference
Difference between rounded and input x
Multiplier R
Number of times factor fits into rounded number
Multiplier X
Number of times factor fits into input number x
This node adjusts a number (Number X) to a multiple of a specified Factor. You can control the rounding behavior using Round Type. This is useful when you need values to snap to predefined increments or multiples.
For example, if you are designing something that can only be manufactured in lengths that are multiples of 5mm, you can use this node to take any given length and round it to the nearest 5mm increment. Or, if you're working with currency and need to round to the nearest $0.25, this node can perform that calculation.
Often, calculations or measurements result in numbers that are too precise or don't align with practical constraints. This node helps by:
The node takes a Number X, a Factor, and a Round Type:
0 (Nearest): Rounds Number X to the closest multiple of Factor. If Number X is exactly halfway between two multiples, it rounds to the multiple further from zero (standard Math.round behavior for the division Number X / Factor).1 (Floor): Rounds Number X down to the nearest multiple of Factor that is less than or equal to Number X.2 (Ceiling): Rounds Number X up to the nearest multiple of Factor that is greater than or equal to Number X.The node outputs:
Rounded - Number X.Factor fits into the Rounded number (Rounded / Factor).Factor fits into the original Number X (Number X / Factor). This can be a fractional value.Rounding to the nearest whole number (Factor = 1):
7.810 (Nearest)80.287.8Rounding a measurement down to the nearest 0.25 unit:
10.60.251 (Floor)10.5-0.142 (10.5 / 0.25)42.4 (10.6 / 0.25)Rounding a price up to the next multiple of 10:
123102 (Ceiling)13071312.3Working with negative numbers (Nearest):
-7.220 (Nearest)
-7.2 / 2 = -3.6. Math.round(-3.6) = -4. -4 * 2 = -8.-8-0.8-4-3.6First documented in v2.1.16
Oct 20, 2026
Versions before it were published before changes were recorded.