Given a range (l, r) where 0.0 <= l,r <= 1.0 we want to find a fraction x/y which satisfies following condition:↵
l <= x/y < r and y should be as small as possible. l and r might have at most 9 digits after floating point.
l <= x/y < r and y should be as small as possible. l and r might have at most 9 digits after floating point.