Percentage between 2 numbers with a negative in reverse

40 Views Asked by At

I am working on some game code and I have an image that I need to figure out the percentage from the top and left relative to the coordinates on a map, left on the map is 9688 and right is -5300. How would I figure out the percentage in from the left 5978 is?