How to round to the nearest number in a table

The title speaks for itself. I’ve been looking all over the internet for answers, but came up empty handed. Anyone know how to do this?

What’s it for? That may help with creating an answer

Here you go.
Next time, a bit more research perhaps? Doesn’t hurt, but glad to help.

3 Likes

Luau compatible, use the second solution.