Placing objects on a grid?

Edit: one sec. need to check something

I think i got it, divide the values by you block size then make it whole numbers without .022424 and then multiply by block/grid size, should work.