Working out resolution independent values from regular pixel specific values

I’m trying to retrieve data which will tell me the position of an object after i have moved it on the screen. I have managed to get specific pixel coordinates however I can’t seem to figure how i can retrieve the value of the coordinates in a resolution independent way.

To be clear I would like to print the coordinates which will tell me the values in a way that is shown below instead of the regular pixel specific way

image.x = \_W \* 0.68;   
image.y =\_H \* 0.4  

Instead of the typical

image.x = 219 image.y = 195 [import]uid: 24981 topic_id: 10866 reply_id: 310866[/import]

You could take the pixel coordinates and divide them by the height or width of the screen such as:

[code]
local imageX = _W/image.x
local imageY = _H/image.y

print(imageX, imageY)
[import]uid: 27965 topic_id: 10866 reply_id: 39512[/import]

Thanks just figured it out myself and was about to reply. Obvious really! [import]uid: 24981 topic_id: 10866 reply_id: 39513[/import]