The title might be a bit confusing, since I didn't know how to put this into one sentence.
I have a 10x10 grid and every square on the grid is 100 pixels (this is a programming problem) from edge to edge. If I have a position where the x and y-value represent pixels away from the top or left side of the grid, how can I determine which square on the grid contains the position?