Closed yosshi4486 closed 3 years ago
if compare ad < bc
ad < bc
this does same task, but it possibly treats smaller numbers than above.
let commonFactor = gcd(b, d) let smallB = b / commonFactor let smallD = d / commonFactor let ad = a * smallD let bc = smallB * c return ad < bc
Idea
if compare
ad < bc
this does same task, but it possibly treats smaller numbers than above.