Vllt. so?
vector.x = round(vector.x/zahl)*zahl