So I made an array that contains fractions (1/2, 1/3, 2/3, etc) and what I have set up is that the user types in two numbers, the program divides them and subtracts until it's left with only the decimal point, and saves that as a global variable, then the program tries to find a corresponding fractions but I'm encountering rounding issues
For example if the user types in 100/6 the answer is 0.666666668 but in the array 1/3 is 0.6666666666
So the program doesn't work because these are two different values because it was round. Is there any way around this?