Code:
my.x = 64 * (integer(my.x / 64) - 64 / 2;


und eine Klammer fehlt noch...