algorithmic modeling for Rhino
A component that rounds a number(x) to the nearest number in a user defined list(y).
Round To Nearest also has an option to remap number(x) to the domain of the number list(y) in case number(x) is too far outside of the number list(y) domain. The remapping is good for attractor distance data which generally results in high numbers that need to be scaled down by division. Round To Nearest takes data sets with large degrees of variety in numbers and rounds them to specified user defined values. The component will go into the Maths > Util tab.
You can download the component and example file from here: http://www.grasshopper3d.com/group/milkbox/forum/topics/round-to-nearest-maths