You sure you need to convert it to % of screen? It feels like you're about to use the coordinates to plot stuff on the screen, in which case you might be better off leaving them as pixels, rather than converting back and forth.
Plus, pixels unlikely to be square in % units (although physical pixels might not be quite square either, but nowadays they're usually pretty close).