Check for negative coordinates and remove unnecessary floorf