Rounding integers to multiples other than 1


Does anybody have any ideas on how to round a number to an integer other than the nearest 1? i.e. round a list of numbers to the nearest 5 or 10?

In Excel, the Floor and Ceiling functions allow the user to set a value called “significance”, but it seems Dynamo’s Math.Floor and Math.Ceiling nodes don’t include those inputs. Has anybody out there had this problem before?


I have a couple of nodes in package Clockwork for rounding that can do exactly what you’re looking for.

Rows 3-5 in the screenshot below:


Excellent! Thanks Andreas, Clockwork to the rescue yet again!