If you need to know whether a/b and c/d are roughly the same ratio, then (in Python 3 only) you can do math.abs(a/b - c/d) < margin. The smaller the positive number margin is, the more close the ratios have to be for the expression to return True. margin = 1/100 would be within a percentage point.
For example: I want to know wether 5 and 500 have a 1:100 ratio, I also want to know how I can see if they roughly have the same ratio or not, how do I do this??
How do I check if 2 numbers are equal to a specific ratio in Python?