1. The problem statement, all variables and given/known data Hey guys I need help with a lab I'm doing that is similar to the Milikan's experiment. I am given 10 bags each holding the same item (Jellybean) of various quantities. Each bag has a different mass. What I'm trying to figure out is the mass of the individual item, so mass of 1 jellybean. This is similar to finding the elementary charges for milikan's experiment. 2. Relevant equations I believe using the euclidean algorithm is the best method because all the bags should be a integer multiple of the mass of 1 jellybean. 3. The attempt at a solution First i subtracted the mass of the bags from the mass of bag + jellybeans, to find the mass of the jellybeans only. Then i ordered the various masses in increasing order. Now my problem is, in doing Euclidean Algorithm to find GCD, since these numbers are real numbers, how do I know when to stop using the algorithm. I've made a Java program that does the algorithm recursively but I'm not sure when to stop because this algorithm can go on forever. Thanks in advance.