ensure that NUMERATOR is not divisible by DENOMINATOR, fix #160476
Merge pull request #161306 from mauk81/patch-4

ensure that NUMERATOR is not divisible by DENOMINATOR, fix #160476