Hi, I would like to know how to round numbers.
I have an entity and I need it's position to be rounded to the nearest number divisible by ten once it's finished moving.
I have an if statement that works with a variable counter so that I have a block which will activate once the entity has stopped moving.
In this block I added a line saying:

if (my.x % 10 != 0)

but I have no idea what to do if the if statement is met.
Thanks for your help and if anything in the post is unclear please let me know so that I can clarify.
Rtsgamer706