Tech Interview

Implement a Function to Return a Ratio

Implement a function to return a ratio from a double function (0.25 -> 1/4).
If the function tolerance is .01 then Find Ratio(.24, .01) -> 1/4

Exit mobile version