Snap to Grid for Moveable Points

So, I’ve made moveable points that can snap to grid by using sliders for the coordinates and setting the Step to the desired increment. Is there a way to do this without using variables for the coordinates?

You’ll have to use sliders to set step size.