What's the simplest way (or any way) to simplify a fraction. In my scenario I will be finding the slope of a line, the Y in the slope will be the vertical speed and the x will be the horizontal speed. The number can turn out to be '(300 - 75) / (400 - 200)' (y1 - y2 / x1 - x2) which will make the slope be '225 / 200'. I don't want the speeds to be 225 and 200 I want them to be 9 and 8 ('9 / 8' == '225 / 200'). How can I do this in my program('s code)?


