Snap object to grid

Why hello all! Just wondering if anyone knows how to go about snapping objects to the grid ingame?

GameObject.worldPosition = (round(num) for num in GameObject.worldPosition)

Also search the forum before posting, Agoose77 has made that a long time ago.

Sent from my LG-H440n using Tapatalk